Remote and local branch is not in sync in source tree


I have two local repositories on my local machine which points to same remote repository. I have only one branch on remote which is "master". The problem is when i update master on one repository and push it to remote server, "origin/master" is updated and shown in source tree for that repository. However, on another repository, "origin/master" still points to old commits unless i do git pull manually on this repo. I think source tree should automatically shown when "origin/master" and local master are out of sync. I am using ssh keys for pulling and pushing on gitlab. I have also set up keys in source tree still no luck. I am using gitlab for remote server.

PFB screenshots.


Current position of origin/master in one repository.


In another repository, origin/master still points to older commits, even though in actual its been updated.



Key settings.




2 answers

1 accepted

Accepted Answer
2 votes

You cut your options dialog just slightly too short. There is another setting to "Check default remotes for updates every ___ minutes". That setting will cause SourceTree to automatically run "git fetch" commands, which are what you need in order to see the up-to-date position of the origin branches.

@Seth: thanks. Figured it out today itself.. :)

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...

995 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