Adding an extra remote repository in EGit

筅森魡賤 提交于 2019-12-05 16:40:20

Not sure how to do this in egit, but if you want to try command line. First add a remote for repo 1:

    git remote add <remote_name> <url_of_open_source_project>

You can now see your remote repos by typing:

    git remote -v

Create a new branch which will be used to merge in repo's 1 code:

    git checkout -b <branch_name>

Fetch repo 1 and then merge repo 1's branch into your local branch:

    git fetch <remote_name>
    git merge <remote_name>/<remote's branch_name>

After this, you can push onto your github fork (assuming the remote name is origin):

    git push -u origin <github_branch_name>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!