Remote and local branch is not in sync in source tree

Hi,

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.

current.PNG

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

 

old.PNG

Key settings.

 

keys.PNG

 

2 answers

1 accepted

2 votes
Accepted answer

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 Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

961 views 4 2
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