【发布时间】:2022-11-21 02:30:52
【问题描述】:
- “远程包含您在本地没有的工作”
! [rejected] feature/addition -> feature/addition (fetch first) error: failed to push some refs to 'github.com:<github_username>/<reponame>.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.- “您当前分支的尖端在其远程分支的后面”
! [rejected] feature/addition -> feature/addition (non-fast-forward) error: failed to push some refs to 'github.com:<github_username>/<reponame>.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 pull解决了。您每次都运行相同的命令还是它们不同?如果有,它们是什么?