Thursday, 15 January 2015

git - get rid of unreachable commit -



git - get rid of unreachable commit -

i trying cleanup repository , remove unreachable.

i did

git reflog expire --expire=now --all git fsck --full --unreachable git repack -a -d git gc --aggressive --prune=now

but still have commits unreachable understanding not git's

i have commit, let's a

git branch --all --contains git tag --contains

return nothing

but

git fsck --full --unreachable

also returns nil not consider unreachable.

what missing?

actually, found it!

that refs/original/mybranch ref still maintain commit reachable.

these original refs created during git filter-branch

git branch --all

does not include them.

the reason why did not find them @ origin because missing in .git/refs/original folder.

i found them in .git/packed-refs file. removed branches file , cleaned repository again.

git

No comments:

Post a Comment