Mirroring to online repositoy.

N. Sujith Joseph Ratnam November 6, 2021

While mirroring to an online repository, it asked for an app password, I entered my setting and created an app password and I entered it. It showed the following error.

 

! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://N_Sujith@bitbucket.org/n_sujith/git-test.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.

 

please help me with this...!

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 7, 2021

Hi @N. Sujith Joseph Ratnam,

Welcome to the community!

I believe the error logs indicate that your local copy of the repositories master branch is being the remote repositories current master branch hence your push was rejected. You need to run git pull first to update your local master branch before pushing your changes.

I hope this helps, please let me know how it goes.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events