vue project code uploaded to the cloud, push when error: failed to push some refs to 'https://gitee.com/mawenrou/vue_ht.git'

vue project code uploaded to the cloud, push when error: failed to push some refs to 'https://gitee.com/mawenrou/vue_ht.git'

Because before the child rights has been created branch cloud pushed to the code, write git push, only the first cloud pushed to the code should be rewritten push -u origin rights

Run git push reported the following error; 原因是README.md remote file repository GitHub repository is not local.

解决办法

-uChanged -fto

git push -f origin master

 

Guess you like

Origin www.cnblogs.com/angel648/p/11297411.html