3 ms·
The other thing to keep in mind is that `git gc` may prune loose objects that are created without any references. "git gc tries very hard to be safe about the
by technoweenie 16y ago
The other thing to keep in mind is that `git gc` may prune loose objects that are created without any references.
"git gc tries very hard to be safe about the garbage it collects. In particular, it will keep not only objects referenced by your current set of branches and tags, but also objects referenced by the index, remote-tracking branches, refs saved by git filter-branch in refs/original/, or reflogs (which may reference commits in branches that were later amended or rewound)." -- http://www.kernel.org/pub/software/scm/git/docs/git-gc.html http://www.kernel.org/pub/software/scm/git/docs/git-gc.html
- draebek 16y agoNote that he does add a tag to the object he creates, presumably so it doesn't get collected.