Error while pushing code to Bitbucket

Duncan Muchiri December 7, 2017

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
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 7, 2017

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
TAGS
AUG Leaders

Atlassian Community Events