Y
Hacker News
new
|
ask
|
show
|
jobs
by
eropple
1457 days ago
I dunno - I can tell zsh to are-you-sure me about an `rm -rf *`, git seems like it should be able to do similarly. Or, as Mercurial does, back up overwritten files to .bak.
These are pretty light asks.
1 comments
sagarm
1456 days ago
The sole purpose of git checkout -- file is to overwrite the file you explicitly listed. There should not be a confirmation by default.
link