Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting this strange error.

Deleted user July 8, 2018

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream projeter master:master
Pushing to https://bitbucket.org/BattleOfForce/ashwin/src
To https://bitbucket.org/BattleOfForce/ashwin/src
! [rejected] master -> master (non-fast-forward)

error: failed to push some refs to 'https://bitbucket.org/BattleOfForce/ashwin/src'
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.

 

 

 

Any idea?

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 8, 2018

Hi Ashwin! Looks like your local branch is out of sync with the tracking branch. Git is giving you the reason why it failed:

Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes (e.g. 'git pull ...') before pushing again.
See the 'Note about fast-forwards' in 'git push --help' for details.

Have you followed those steps? If you are sure your local master has the latest changes you want on remote, then you can do git push --force –

Are you still having issues after that?

Kind regards,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events