Forums

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

Bitbucket 1 Change Behind But Nothing in Compare

Alex Comerford
Contributor
April 25, 2018

Hi, 

I found this article but nothing to help me rectify my issue

https://community.atlassian.com/t5/Bitbucket-questions/behind-ahead-incorrect/qaq-p/4749

I want to bring my development branch up to date with master however it is always 1 or 2 commits behind. I have tried pulls and merges in both directions and still have the same issue

Please can someone help me with this?

Thanks

Alex

Capture.JPG

1 answer

0 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 13, 2018

Hi @Alex Comerford,

Let me share one example that I've created based on this.

 

I started with a test branch with some changes not on master, which is why it is showing as 2 commits ahead. Also test is behind master by 1 commit, in my case is because a pull request from another branch has been merged to master after the test branch has been created:

Behind.png 

 

To update test with the most recent changes from master, I ran the following commands:

# checkout the target branch
git checkout test

# merge the changes from the master branch into the test one
git merge master

# push the changes to test
git push origin test


After that, this is the result in the Bitbucket user interface.

Test is now 3 commits ahead, the 2 from before and the merge commit from the master branch. There are no remaining "behind commits".AheadOnly.png

 

Cheers,

Caterina - Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events