|
|
|
|
|
by philsnow
4337 days ago
|
|
> things in Git are never really deleted until you run `git gc`. wording there is a bit dangerous, see this snippet from `man git-gc`: Some git commands run git gc --auto after performing operations that could create many loose objects.
It doesn't say what those commands are. I've always found what I'm looking for in the reflog, so either I've been lucky or this cautionary note in the man page is conservative. |
|
After that, then the object is subject to pruning by `git gc`, and may go immediately, or up to 14 days later, depending on the packing. That 14-day grace period is there for objects that never got referenced in the first place (so a tree that you are building to make a commit, for example, would not go away before you run `git commit`).