赞
踩
新建项目上传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上传项目
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。