[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
相關文章
相關標籤/搜索