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...!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.