Y
Hacker News
new
|
ask
|
show
|
jobs
by
russelldavis
4428 days ago
The branch equivalent is `git checkout foo --`. I wrote a simple shell script[1] that makes that the default, requiring you to do `-- <file>` for files, so there's never a possibility of ambiguity.
[1]
https://gist.github.com/russelldavis/e5173ce1269fae67baaf