For Ruby on Rails project pull request, git push to my fork failing
问题 I made fixes and tests, git commit -a , updated my branches and now I'm trying to push to a GitHub fork I had previously made: 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