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

In a near future, hopefully we will have two new commands, git-switch and git-restore. The former is only about switching branches, the latter restoring files. Then you can stay away from the overloaded git-checkout.

See

https://github.com/git/git/blob/pu/Documentation/git-switch....

https://github.com/git/git/blob/pu/Documentation/git-restore...



That's awesome :) though this is just one way to lose files.


Yeah some of those ways are known and there may be a way to recover those lost changes. It's still too early to see if something will materialize.




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

Search: