Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Merge the same commit in SourceTree after merging in BitBucket

I am setting up branch permissions on my bitbucket repository. I set the permissions so that only after a pull request a merge can happen.

So i merged a test-branch with my Develop and when I tried to push the local Develop to origin it gave me an error as expected: ´permission denied to update branch´.

After I merged the branches on bitbucket (through the pull request), my SourceTree now says that I need to push my commit (because the original push from local to origin got denied). How can i fix this so that my SourceTree doesnt say i still need to push to origin because I already merged the branches on BitBucket.

1 answer

0 votes
minnsey Atlassian Team Oct 04, 2018


I'd open the Git Terminal and use the following to reset your local branch to match the remote

git fetch origin
git reset --hard origin/{branchname}

Suggest an answer

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,119 views 5 13
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