一句话简单粗暴解决gitee无法上传代码问题
从本地仓库上传gitee问题简单解决
·
问题描述:
git.exe push --progress "origin" master:master
To https://gitee.com/qi--yu/hodgepodge.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://gitee.com/qi--yu/hodgepodge.git'
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条内容
所有评论(0)