3 ms·
Funny. I know 'checkout' pretty well but I've never seen 'switch'/'restore' before today. Switch seems straightforward but I don't understand restore. Is it po
by dreamcompiler 4y ago
Funny. I know 'checkout' pretty well but I've never seen 'switch'/'restore' before today.
Switch seems straightforward but I don't understand restore. Is it possible to describe restore in terms of checkout?
- brianzelip 4y agoOne example, when reverting file changes to previous file state from last commit, the following are equivalent: `git checkout — $FILE` and `git restore $FILE`.
- computerfriend 4y agoWow, time to get rid of my `git reset-file` alias.