当前位置: 代码迷 >> 综合 >> git报错:error: failed to push some refs to ‘https://gitee.com/CHIIIHO_1/chiiioh-small.git‘ hint: Updat
  详细解决方案

git报错:error: failed to push some refs to ‘https://gitee.com/CHIIIHO_1/chiiioh-small.git‘ hint: Updat

热度:2   发布时间:2024-02-22 21:53:32.0

git报错:error: failed to push some refs to ‘https://gitee.com/CHIIIHO_1/chiiioh-small.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 commit 没有执行完 就git push 导致这个报错。
解决办法, git push -f 强推

如果不成功。 git push origin master ,再次git push -f

  相关解决方案