snippetbashTip
git repack — Pack unpacked objects in a Git repository. More information: <https://git-scm.com/docs/git-repack>.
Viewed 0 times
commandgit repackcliobjectsunpackedrepositorygitpack
Problem
How to use the
git repack command: Pack unpacked objects in a Git repository. More information: <https://git-scm.com/docs/git-repack>.Solution
git repack — Pack unpacked objects in a Git repository. More information: <https://git-scm.com/docs/git-repack>.Pack unpacked objects in the current directory:
git repackRemove redundant objects after packing:
git repack -dRepack all objects into a single pack:
git repack -aLimit the repack to local objects only:
git repack -lCode Snippets
Pack unpacked objects in the current directory
git repackRemove redundant objects after packing
git repack -dRepack all objects into a single pack
git repack -aLimit the repack to local objects only
git repack -lContext
tldr-pages: common/git repack
Revisions (0)
No revisions yet.