2 ms·
These three invocations are not present in switch: git checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>… git checkout [<t
by masklinn 7y ago
These three invocations are not present in switch:
git checkout [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>…
git checkout [<tree-ish>] [--] <pathspec>…
git checkout (-p|--patch) [<tree-ish>] [--] [<paths>… ]
That is, aside to / on top of the ability to switch to a specific branch or commit, checkout
* is used to revert working tree changes, possibly interactively
* is used to set working tree changes to either side of a merge (in case of conflict)
* is used to revert specific local paths to a historical version thereof, possibly interactively