Error while pushing code to Bitbucket

hi guys,

I am trying to push code to bitbucket fro  an Ubuntu os  and getting this error...

To https://bitbucket.org/Dunkan50/commentsection.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://Dunkan50@bitbucket.org/Dunkan50/commentsection.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

i have tried most solutions offered but with no success.

1 answer

0 votes

Do a pull before you try to push again. You can do:

git pull origin master

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

194 views 3 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you