4 ms·
And the counterpart to switch is restore: https://git-scm.com/docs/git-restore https://git-scm.com/docs/git-restore
by _ikke_ 6y ago
And the counterpart to switch is restore:
https://git-scm.com/docs/git-restore https://git-scm.com/docs/git-restore
- divbzero 6y agoThank you, both switch and restore are new to me. That said, checkout behaves quite predictably once you learn it, so I’ll probably wait for the “THIS COMMAND IS EXPERIMENTAL. THE BEHAVIOR MAY CHANGE.” warnings to disappear before adopting the newer commands.
- uses 6y agoTo me, restore is one of the most frightening commands in git. It has an innocuous name but it can delete arbitrary amounts of uncommited work without any further interaction, warnings, or confirmation.