Commit and push a change (Git)
When you add a new file to your repository or make a change, you need to stage, commit, and push that change to your remote repository. After you make the change, you'll notice your new file in SourceTree.
From the options menu of the new file, select Stage file.
- 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. You can now see your change under the History tab.
From SourceTree, click the Push button to push your committed changes.
Under the Push? column from the dialog box that appears, select the branch where you want to push the change and click OK.