Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: