Hacker News new | ask | show | jobs
by sleepychu 1835 days ago
`git checkout` great for switching to a different commit and for throwing away local unstaged changes!
1 comments

Using `git checkout` with a filename really really really should have a yes/no prompt by default, or at least an `-i` option like `rm`.
I think `git switch` is an attempt to resolve this