Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_gc [2019/03/02 08:37] – [Examples] rpjday | git_gc [2019/03/07 09:46] (current) – [Examples] rpjday | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| How to clean up dangling and unreachable objects. | How to clean up dangling and unreachable objects. | ||
| + | |||
| + | Links: | ||
| + | |||
| + | * [[https:// | ||
| ===== SYNOPSIS ===== | ===== SYNOPSIS ===== | ||
| Line 96: | Line 100: | ||
| dangling commit 69fd5e6a8733ed63293aab658d584150c0af9db2 | dangling commit 69fd5e6a8733ed63293aab658d584150c0af9db2 | ||
| $ | $ | ||
| + | </ | ||
| Prune now: | Prune now: | ||
| Line 109: | Line 114: | ||
| $ | $ | ||
| </ | </ | ||
| - | All gone: | + | |
| + | All gone: | ||
| < | < | ||
| Line 116: | Line 122: | ||
| Checking objects: 100% (11352/ | Checking objects: 100% (11352/ | ||
| $ | $ | ||
| + | </ | ||
| + | |||
| + | Clearing the reflog first: | ||
| + | |||
| + | < | ||
| + | $ git reflog expire --expire=now --expire-unreachable=now --all | ||
| + | $ git gc --prune=now | ||
| </ | </ | ||