It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why doesn't my git log/history update automatically? Edited

Hi,

I am running Sourcetree v2.3.1.0 on Windows 7.

I have this option configured in my settings:

20170919_153343.png

I thought this setting would cause my git log/history graph to update automatically and update the log with the latest commits that have been pushed to my remote repo. Instead, I find I have to press F5 or hit 'Fetch' for the log to show the latest commits.

20170919_155248.png

 

Is there a bug here? Or does this setting do something else that I'm not aware of? If it is the latter, what is it actually doing?

1 answer

0 votes
jyo Atlassian Team Sep 19, 2017

There is no bug here -- Git doesn't automatically pull changes for you. That setting will alert you if there are changes on the server (so you can fetch/pull)

Due to the fact that changes can conflict, we aren't going to automatically pull them for you and possibly cause a conflict.

Thanks @jyo - I understand that pulling commits will modify my local source, but I thought fetch didn't modify my local source, it only fetched the latest commits into my local git repository somewhere in my .git folder (which I could then choose to pull into my source).

I was expecting this setting to auto-fetch for me.

jyo Atlassian Team Sep 20, 2017

@Joshua WilliamsGot it-- yeah. We won't auto-fetch for you. However, I thought this would be rather neat: https://stackoverflow.com/questions/10464039/git-automatic-fetching-from-remote-repositories

You could possibly set an alias to fetch the changes and check the status. Note: This won't check for conflicts!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,989 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you