Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's like asking how to undo `rm -rf`


It really is. Sure, it is an issue that it's the same subcommand as you use for many other things (which is being worked on with git switch/restore), but there is no other context where you'd do `git checkout .` if it wasn't your direct intention to get rid of changes in your workspace.


Mercurial creates backup files though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: