Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 the target branch:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "...update all submodules to match it"? Or "...update all submodules to the versions it specifies"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed.


`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}}`