git pull --rebase upstream & git push origin rejects non-fast-forward?

前端 未结 1 1898
青春惊慌失措
青春惊慌失措 2020-12-15 10:44

I\'ve implemented classic OSS maintainer/contributor git workflow for a company project on github, however one edge case produces some weird results that I\'m not sure how t

相关标签:
1条回答
  • 2020-12-15 11:21

    When you

    git pull --rebase upstream master
    

    you are rewriting your own history, since you are rebasing your master branch on the updated upstream repository. When you push your rebased repo to your fork git complains. You need to push with --force

    git push --force origin master
    
    0 讨论(0)
提交回复
热议问题