• 欢迎光临~

gitee上传失败问题

开发技术 开发技术 2022-11-28 次浏览

error: failed to push some refs to 'https://gitee.com/herryxm/hhgolbalk3.git' 
hint: Updates were rejected because the tip of your current branch is behind 
hint: its remote counterpart. Integrate the remote changes (e.g. 
hint: 'git pull ...') before pushing again. 
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

 

当执行git push orgin master时报如上错误,原因是远程仓库中有修改没有同步到本地仓库中。我的情况是远程仓库不为空,创建时新增了readme文件。,可以执行:

git pull --rebase origin master或 

git pull --allow-unrelated-histories

 

后在执行git push origin master,成功。

程序员灯塔
转载请注明原文链接:gitee上传失败问题
喜欢 (0)
违法和不良信息举报电话:022-22558618 举报邮箱:dljd@tidljd.com