当前位置:   article > 正文

IDEA新建项目上传coding报错Updates were rejected_idea hint: updates were rejected because the remot

idea hint: updates were rejected because the remote contains work that you d

新建项目上传coding报错如下:
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first 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.
解决方法:
1、重置coding代码仓库
2、使用coding的建议命令,在想上传的项目文件夹下进入git bash
$ git clone git@e.coding.net:(远程仓库地址).git
echo “# emos-wx-api” >> README.md
git add README.md
git commit -m “first commit”
git push -u origin masterfatal: destination path ‘emos-wx-api’ already exists and is not an empty directory.
3、然后再使用idea上传项目

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/451157
推荐阅读
相关标签
  

闽ICP备14008679号