[rejected] master -> master (fetch first)(non-fast forward)

git push 时候遇到的错误: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.

错误缘由:spa

两个不一样的项目须要先合并。code

解决办法:blog

git pull origin master –allow-unrelated-histories
相关文章
相关标签/搜索