Can sourceTree keep synchronized with command line changes?

Many times I have a sourceTree window open on my repo, but I'm also making changes via git command line (git checkout foo, for example).  I notice that when I do this, the sourceTree window is now out of sync with my repo state.

  1. is there a danger in this?  If I do a sourceTree operation, could it break my repo state because I've changed things behind sourceTree's back?
  2. Is there a way to tell sourceTree to watch my repo state, and update accordingly?  i.e. if I change branches, have sourceTree also change branches?


1 answer

There should be no danger, except possibly in some cases where you initiate an action in SourceTree while it is out-of-sync.

You can tell SourceTree to refresh by using the F5 key. If you make a habit of doing this whenever you shift your own focus to the SourceTree window, you should be safe from any possible harm from using an out-of-sync UI.

I also think there is no danger. SourceTree is almost nothing but a graphical interface - the main work is done by underlying git. So even if SourceTree display is not uptodate and you trigger a git command via SourceTree the executing git process will take "the real situation" into consideration ....

Exactly. The "danger" is mainly that the user doesn't know the "real situation", so the outcome of the command may not be what was expected. Git may push a commit that SourceTree wasn't displaying, for example.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

977 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you