Commit, Push, and Pull a repository on SourceTree

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

This article should help users to understand how to run basic Git operations such as commit, push, pull via SourceTree.

Solution

This page:

How to commit files on Sourcetree

Steps:

  1. Click on the "Commit" button on the toolbar.
  2. On the 'Unstaged files' window, every unstaged changes will appear here. Select files to stage before committing
  3. Here's the 'Staged' files window, staged files will appear here. To unstage a file again, just check the checkbox next to the staged file and the file will be back in unstaged mode.
  4. Enter a commit message here.
  5. Click "Commit" to commit all staged changes to the repository.

Push changes on local repository to remote repository on Sourcetree

Steps:

  1. Click on the "Push" button on the toolbar. A Push window should appear.
  2. Select the remote to push to.
  3. Check the branches which need to be pushed to the remote repository.
  4. Check here to push all tags as well.
  5. Click "OK" to push changes to your remote repository.

Pull changes from remote repository to local repository on Sourcetree

Steps:

  1. Click on the "Pull" button on the toolbar. A Pull window should appear.
  2. Select the remote to pull from.
  3. Select the remote branch to pull changes from.
  4. Click "OK" to pull changes from your remote repository into your local working directory.
Last modified on Feb 26, 2016

Was this helpful?

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