Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
sleepychu
4y ago
0 comments
Share
`git checkout` great for switching to a different commit
and
for throwing away local unstaged changes!
0 comments
default
newest
oldest
nerdponx
4y ago
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`.
sleepychu
OP
4y ago
I think `git switch` is an attempt to resolve this
j
/
k
navigate · click thread line to collapse