I have some commits created by git subtree
that I want to have garbage collect (more that any practical purpose just to understand what and why can get collected).
I have already checked that these commits are not referenced the following ways:
# In any reflog
> git reflog --all --no-abbrev-commit | grep <hash>
(no output)
# In any branch, local or remote
> git branch --contains <hash>
(no output)
> git branch -r --contains <hash>
(no output)
# In any tag
> git tag --contains <hash>
(no output)
# In the current index
> git rev-list HEAD | grep <hash>
(no output)
# In references from filter-branch
> ls .git/refs/original/
(the folder does not exist)
These are the place that git gc documentation lists that could contain references.
Still the given commits still exist after git gc
.
Am I missing something? Or is there any git plumbing command that checks all this references?