I can't push to git. getting the message shown below: -


#1

To github.com:dowo13/RockPaperScissors.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to ‘git@github.com:dowo13/RockPaperScissors.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 to pull and then push and also tried git push -f but i keep getting the above error message, any help appreciated. thanks.


#2

If you are sure there is nothing on the remote that you need you could force it with

git push origin master --force


#3

thanks