我分叉了一个仓库,原来的仓库在我分叉后得到了一个新分支。
OriginalRepo | +-BranchA | +-newBranch MyFork | +-BranchA
我想将分支 newBranch 放入我的分叉中,我该怎么做?
git remote add OriginalRepo repository-URL git fetch OriginalRepo git checkout newBranch git push origin newBranch
也可以使用 Github UI 来完成。您可以转到存储库的分支(即在分支选择器中,选择查看所有分支,您将被带到
https://github.com/<username>/<repo>/branches