diff --git a/pages/common/git-switch.md b/pages/common/git-switch.md index ff29c11a1..84c37638c 100644 --- a/pages/common/git-switch.md +++ b/pages/common/git-switch.md @@ -16,6 +16,10 @@ `git switch --create {{branch_name}} {{commit}}` +- Switch to the previous branch: + +`git switch -` + - Switch to a branch and update all submodules to match: `git switch --recurse-submodules {{branch_name}}`