会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
新界王
博客园
首页
新随笔
联系
订阅
管理
2022年5月28日
error: failed to push some refs to 'https://gitee.com/*.git' hint: Updates were rejected because the remote contains work that you do
摘要: 原因:本地库和远程库的内容不一致,我的是由于新建远程库的时候添加了点内容,导致idea无法将项目push到远端,首次push项目到远端仓库时,一定要保证新建仓库为空!!! 解决办法:在hint中也有提示把远程库同步到本地库就可以了,命令:git pull --rebase origin master
阅读全文
posted @ 2022-05-28 21:35 新界王
阅读(708)
评论(0)
推荐(0)
公告