Create and push a branch to the remote repository (Mercurial)
Whenever you start on a new feature, you may want to create a branch. Branching offers a way to work on a line of development that is different from the main branch.
- From SourceTree, click the Branch button.
- From the Create a new branch field, enter a name for your branch.
- Click OK.
- You're now on your new branch. Make any updates to the repository that you want to make to your branch.
- Open the History view in SourceTree and notice that your repository now has uncommitted changes.
- Click the Commit button at the top to commit the file.
- In the message box, enter a commit message.
Click the Commit button under the box. From the SourceTree History, you'll see that the file has been updated on your new branch.
Click the Push button to push your committed changes.
From the dialog box that appears, click the OK button to push changes to your local repository.