我收到以下錯誤。我該如何解決?: git add。 git的承諾-M 'T' 混帳推起源發展GitHub - 錯誤:未能推動一些裁判'[email protected]:myrepo.git'
To [email protected]:myrepo.git
! [rejected] development -> development (non-fast-forward)
error: failed to push some refs to '[email protected]:myrepo.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
上述消息中的'development'指的是你想要從中拉出的分支。所以如果你使用'master'分支,你可以輸入:'git pull origin master' – Myna
這工作完美謝謝! –