Comment by stinkbeetle
7 hours ago
`git reset --hard` doesn't remove unreferenced commits or rewrite the reflog so I don't think that would do it. Something like `git reset && git gc` would have to be done.
7 hours ago
`git reset --hard` doesn't remove unreferenced commits or rewrite the reflog so I don't think that would do it. Something like `git reset && git gc` would have to be done.
But it does remove current uncommitted changes.
And git gc doesn't collect any garbage less than two weeks old by default, either.