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