TOOL » GIT

Switch

Usage

Switch to a specified branch.

shell
git switch OPTIONS BRANCH START_POINT
OptionDescription
-c --createCreate a new branch.
-C --force-createCreate a new branch ovewriting if it already exists.
-d --detachSwitch to a commit or tag for inspection and discardable experiments.
-f --force --discard-changesProceed while discarding uncommited changes.
-m --mergeProceed while merging uncommited changes.
-t --trackWhen creating a new branch, set up "upstream" configuration.