Skip to content

Commit

Permalink
git-switch: improve wording of example descriptions (#3248)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl authored and waldyrious committed Aug 21, 2019
1 parent 5532175 commit 1ceef96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/common/git-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}`

0 comments on commit 1ceef96

Please sign in to comment.