Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
meinersbur
on Jan 17, 2025
|
parent
|
context
|
favorite
| on:
Oh Shit, Git?
Avoid `git reset --hard` and `git clean -xfd`. To get a clean working-tree, use `git stash --all`. Allows restoring files if necessary. Saved my sorry bottom multiple times.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: