From 5eb53e4a7a82df15b32112024af072ce36ec2606 Mon Sep 17 00:00:00 2001 From: Ryan Olson Date: Thu, 23 Jan 2020 03:27:19 -0700 Subject: [PATCH] git-switch: switch to previous branch (#3784) --- pages/common/git-switch.md | 4 ++++ 1 file changed, 4 insertions(+) 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}}`