mirror of https://github.com/CrimsonTome/tldr.git
git-switch: improve wording of example descriptions (#3248)
parent
5532175b15
commit
1ceef96585
|
@ -12,14 +12,14 @@
|
||||||
|
|
||||||
`git switch --create {{branch_name}}`
|
`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}}`
|
`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}}`
|
`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}}`
|
`git switch --merge {{branch_name}}`
|
||||||
|
|
Loading…
Reference in New Issue