meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| git:issues [2019/07/23 14:50] – niziak | git:issues [2023/07/17 16:02] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| + | |||
| + | ====== fsck: dangling commit ===== | ||
| + | |||
| + | List details about dangling commits ([[https:// | ||
| + | <code bash> | ||
| + | git fsck --lost-found | grep " | ||
| + | </ | ||
| + | |||
| + | Cleanup: | ||
| + | <code bash> | ||
| + | git reflog expire --expire=now --all | ||
| + | git gc --prune=now --aggressive | ||
| + | git repack -a -d | ||
| + | </ | ||
| + | |||
| + | ====== Reduce | ||
| It is important to check if git configured with default settings. | It is important to check if git configured with default settings. | ||
| Especially forcing of creation of multiple smaller packs significantly increases repository size. | Especially forcing of creation of multiple smaller packs significantly increases repository size. | ||
| - | I.e. changing one 1.2 pack into multiuple | + | I.e. changing one 1.2G pack into multiple |
| <code bash> | <code bash> | ||
| git config --global -l | git config --global -l | ||
| git config --system -l | git config --system -l | ||
| </ | </ | ||
| + | |||
| Especially take attention for options like: | Especially take attention for options like: | ||
| * deltaCacheSize = 10m | * deltaCacheSize = 10m | ||
| Line 15: | Line 32: | ||
| - | Command <code bash>git gc</ | + | Command <code bash>git gc</ |
| Compression of objects is also performed in RAM, then packs are written onto disc. | Compression of objects is also performed in RAM, then packs are written onto disc. | ||
| [[https:// | [[https:// | ||