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
Click Commit in the toolbar.
Select the files to commit in the Pending files panel.
Enter a commit message.
Click Commit at the bottom of the window.
To remove a file from staging, clear the checkbox next to the staged file.

Push changes from a local repository to a remote repository
Click Push in the toolbar.
Select the local branch to push and the remote branch to push to.
Click OK.

Pull changes from a remote repository
Click the Pull button in the toolbar.
Select the remote repository to pull from.
Select the remote branch to pull changes from.
Click OK.

Was this helpful?