Creating a New Branch
On this page:
- To create a new Git branch
- To check out a new Git branch from a local branch
- To check out a new local branch from a remote branch
To create a new Git branch
- Invoke the Branches menu as described in Accessing Git Branches Popup Menu.
- In the pop-up menu, choose New Branch.
- In the Create new branch dialog box, specify the branch name. The branch with the specified name will be checked out (corresponds to
git checkout -b
).
To check out a new Git branch from a local branch
- Invoke the Branches menu as described in Accessing Git Branches Popup Menu.
- Select a branch in the pop-up list that shows all available local and remote branches, and choose Checkout as new branch from the submenu.
- Specify the branch name in the Create new branch dialog that opens.
To check out a new local branch from a remote branch
- Invoke the Branches menu as described in Accessing Git Branches Popup Menu.
- Select a branch in the pop-up list that shows all available local and remote branches, and choose Checkout as new local branch from the submenu.
- Specify the name of the new branch in the Checkout new branch from <branch name> dialog that opens.
The branch with the specified name will be checked out and put under version control.
See Also
Procedures:
Reference:
Concepts:
Last modified: 19 July 2017