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

Push Code Error

Hello Atlassian Community,

I'm unable to push my code from sourceTree to a new remote repository in BitBucket. Attached is screenshot. Please help!!!!Push Code Error.PNG

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Dec 11, 2019

Hi @Mohammed Amer,

Welcome to Atlassian Community.

The error you get indicate that your local copy of the master branch is behind the remote master. In order to resolve that you first have to do a pull, and once that is done the push should work.

Hey @Mikael Sandberg , thanks for quick reply. I have already tried to pull but the pull button is greyed out and I was unable to proceed.

Mikael Sandberg Community Leader Dec 11, 2019

Try and do the pull from the command line. In Sourcetree, click on Terminal and from here run:

git pull

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