Commit, Push, and Pull a repository on SourceTree

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Understand how to run basic Git operations like commit, push, and pull in SourceTree.

Solution

On this page:

Commit files

  1. Click Commit in the toolbar.

  2. Select the files to commit in the Pending files panel.

  3. Enter a commit message.

  4. Click Commit at the bottom of the window.

To remove a file from staging, clear the checkbox next to the staged file.

(Auto-migrated image: description temporarily unavailable)

Push changes from a local repository to a remote repository

  1. Click Push in the toolbar.

  2. Select the local branch to push and the remote branch to push to.

  3. Click OK.

(Auto-migrated image: description temporarily unavailable)

Pull changes from a remote repository

  1. Click the Pull button in the toolbar.

  2. Select the remote repository to pull from.

  3. Select the remote branch to pull changes from.

  4. Click OK.

(Auto-migrated image: description temporarily unavailable)

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.