vue 项目上传到码云,push时error: failed to push some refs to 'https://gitee.com/mawenrou/vue_ht.git'

vue 项目上传到码云,push时error: failed to push some refs to 'https://gitee.com/mawenrou/vue_ht.git'

因为之前已经创建了rights子分支推送到码云,写git push,只有第一次推送到码云要写成push -u origin rights

运行git push 报以下错误;原因是GitHub远程仓库中的README.md文件不在本地仓库中。

解决办法

-u改成-f即可

git push -f origin master

猜你喜欢

转载自www.cnblogs.com/angel648/p/11297411.html