Skip to content

Commit 7911e4e

Browse files
Merge pull request #12986 from ghogen/git-branch
Add info on track remote branch
2 parents 60bd26b + c94daa2 commit 7911e4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/version-control/git-create-branch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Here's how.
3131
1. In the **Based on** section, use the drop-down list to choose whether you want to base your new branch off an existing local branch or a remote branch.
3232

3333
1. The **Checkout branch** checkbox, which is on by default, automatically switches to the newly created branch. Toggle this option if you want to remain in the current branch.
34+
1. The **Track remote branch** checkbox, which only appears if you select **Remote** in the **Based on** section, is selected by default if the remote has a matching branch name. If the branch is intended to be a local version of the remote branch, this should be selected; otherwise, clear the checkbox. See [Remote branches](https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches).
3435

3536
There you have it; you've created a new branch.
3637

0 commit comments

Comments
 (0)