我运行了以下命令:
有什么方法可以解决上述错误吗?
git add .
git commit -m 't'
接下来,当运行以下命令时:
git push origin development
我遇到了以下错误:
To git@github.com:myrepo.git
! [rejected] development -> development (non-fast-forward)
error: failed to push some refs to 'git@github.com: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.
有什么方法可以解决上述错误吗?
git pull origin master
。 - Myna