Despite pulling from the remote master and being told everything is up to date, I can't push to the remote master because the current branch is behind the tip of the remote. What?
$ git pull origin master
From https://github.com
* branch master -> FETCH_HEAD
Already up-to-date.
$ git push origin master
To https://github.com
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
You are probably on a different branch. git checkout master
and try.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With