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