From 1ceef96585f9f096913ff3806c632c5fd0bc233f Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 21 Aug 2019 12:44:22 +0100 Subject: [PATCH] git-switch: improve wording of example descriptions (#3248) --- pages/common/git-switch.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/git-switch.md b/pages/common/git-switch.md index d0baeb3a2..ff29c11a1 100644 --- a/pages/common/git-switch.md +++ b/pages/common/git-switch.md @@ -12,14 +12,14 @@ `git switch --create {{branch_name}}` -- Create a new branch based on an existing commit: +- Create a new branch based on an existing commit and switch to it: `git switch --create {{branch_name}} {{commit}}` -- Update all submodules to match the target branch: +- Switch to a branch and update all submodules to match: `git switch --recurse-submodules {{branch_name}}` -- Automatically merge the current branch and any uncommitted changes into the new branch: +- Switch to a branch and automatically merge the current branch and any uncommitted changes into it: `git switch --merge {{branch_name}}`