Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
stinkbeetle
2mo ago
0 comments
Share
`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.
0 comments
default
newest
oldest
eru
2mo ago
And git gc doesn't collect any garbage less than two weeks old by default, either.
_flux
2mo ago
But it does remove current uncommitted changes.
olvy0
2mo ago
Except for new files, you'd have to also run git clean -f
j
/
k
navigate · click thread line to collapse