Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stinkbeetle
62 days ago
|
parent
|
context
|
favorite
| on:
We put Claude Code in Rollercoaster Tycoon
`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.
eru
62 days ago
|
next
[–]
And git gc doesn't collect any garbage less than two weeks old by default, either.
_flux
62 days ago
|
prev
[–]
But it does remove current uncommitted changes.
olvy0
60 days ago
|
parent
[–]
Except for new files, you'd have to also run git clean -f
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: