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
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:
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".
Cheers,
Caterina - Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.