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

Branches checked out from origin don't have all commits Edited

Edited because the question does not appear to carry the date asked.

 

This has been reported by several of our developers over the last couple of years and it happened to me.  I'm using Sourcetree 2.4.8.0.

This morning in response to a pull request on a branch I did not have local, I checked it out from origin and tried to test the changes.  After a few minutes of troubleshooting an error I discovered I had four commits to pull, three of then dated 6 Apr (today).

Could Sourcetree be tracking commits on branches you've never checked out? 

What other reason would checking out from Origin not include all commits?

 

 

1 answer

0 votes
minnsey Atlassian Team Apr 10, 2018

Hi

Git will checkout the branch from its local copy of the repository, if it has a copy. So if you did a fetch before the 6th April your local copy will have been aware of the branch, when you checked out you got the version pre-6th April and then Sourcetree indicated there were new commits post 6th April

Edited this because it was unnecessarily acerbic.

I'm not sure why the question isn't clear.  I said "a pull request on a branch I did not have local".  So this response doesn't address the problem -- "Branches checked out from origin don't have all commits"

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,962 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