Hacker News new | ask | show | jobs
by bicolao 2596 days ago
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...

1 comments

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.