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.

  1. From the options menu of the new file, select Stage file.

  2. Click the Commit button at the top to commit the file.
  3. In the message box, enter a commit message.
  4. Click the Commit button under the box. You can now see your change under the History link.

  5. From SourceTree, click the Push button to push your committed changes.

  6. Under the Push? column from the dialog box that appears, select the master branch to indicate that you are pushing that branch to origin and click OK.

Last modified on Sep 37, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.