git error

 

Error: failed to push some refs to 'git@myproject.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') hint: before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

I used force switch when I got above error while pushing the code

#git push -f myproject master

myproject is the repository name

 
 

Leave a Reply

Your email address will not be published. Required fields are marked *


*