Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Remote and local branch is not in sync in source tree

Rohit Ketkar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 11, 2016

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
Answer accepted
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2016

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.

0 votes
Rohit Ketkar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2016

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events