Zina_zq 2022-11-25 15:14 采纳率: 33.3%
浏览 6

提交文件到github远程仓库报错

问题遇到的现象和发生背景

提交文件到远程仓库报错

用代码块功能插入代码,请勿粘贴截图

git push github master

运行结果及报错内容

! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'github.com:2020zina/zina.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.

我想要达到的结果

成功提价文件到远程仓库

  • 写回答

4条回答 默认 最新

  • 三只小菜猿 新星创作者: PHP技术领域 2022-11-25 15:19
    关注

    是不是上面更新了你直接push的,你应该先pull一下,看看更改和报错,再往上推

    评论

报告相同问题?

问题事件

  • 修改了问题 11月25日
  • 创建了问题 11月25日