将fork出来的分支与原项目合并
生活随笔
收集整理的這篇文章主要介紹了
将fork出来的分支与原项目合并
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
轉載地址:如何同步 Github fork 出來的分支
git remote add upstream git@github.com:original_owner/original_repository.git git fetch upstream git merge upstream/master git commit -m "message" git push origin master我在最后一步?push?的時候報錯:
$ git push origin master To https://github.com/USERNAME/REPOSITORY.git! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/USERNAME/REPOSITORY.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.原來是因為沒有?commit,?Dealing with non-fast-forward errors
總結
以上是生活随笔為你收集整理的将fork出来的分支与原项目合并的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 四大开源无人机项目,极客要Get了
- 下一篇: #,#x,\u开头的unicode介绍