Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Branches checked out from origin don't have all commits

WBClark April 9, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
April 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

WBClark April 10, 2018

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
AUG Leaders

Atlassian Community Events