To [email protected] /cdn-cgi/l/email-protection:xxx/xxxxx.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected] /cdn-cgi/l/email-protection:xxx/xxxxx.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
当我尝试推送一些更改时出现此错误。当我尝试从仓库中获取时,我得到
From github.com:xxx/xxxxx
* branch master -> FETCH_HEAD
我应该怎么做才能解决这个问题?到目前为止,基本上只有我在回购,我只收到了其他人的两次推送。我需要进行适当的合并吗?
推送失败,因为您的引用落后于远程存储库的引用。获取操作只会获取远程存储库的内容和引用,但不会更新您的更改的引用。因此,它对于解决阻止推送的问题没有任何作用。您需要执行拉取操作或手动合并远程引用的本地版本。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)