Git · Maintenance

git repack

Packs all objects into a single packfile and removes redundant packs.

Syntax
git repack -ad

Example

Example
git repack -ad

More in this group

git count-objects -v git filter-repo git fsck --lost-found git gc git lfs git maintenance git prune git reflog expire

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course