我进行了修复和测试,git commit -a
更新了我的分支,现在我正在尝试推送到我之前制作的 GitHub 分支:
vagrant@rails-dev-box:~/rails$ git push mine my_fix
Username for 'https://github.com': myusername
Password for 'https://myusername@github.com':
To https://github.com/myusername/rails.git
! [rejected] my_fix -> my_fix (non-fast-forward)
error: failed to push some refs to 'https://github.com/myusername/rails.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.
我猜这个问题的原因是分叉有点过时(可能是一个星期)。尽管我不想输,但我已经做出了其他推动。我在这里做什么?