Hacker News new | ask | show | jobs
by CyberShadow 3588 days ago
Be careful with hard resets - they throw away working tree changes. Ironically, it's one of the few git operations you actually can't undo. (Usually I prefix such scripts with "git stash save" due to this.)