最佳答案
我有一个本地 git 存储库,它是 github 上存储库的克隆。有人分叉了存储库,并在新存储库的新分支上进行了更改。我希望将这个新分支移动到我的存储库中(在与主存储器合并之前首先在本地处理它)。
I tried creating a new branch and then pulling from the forked repository but it complains because the new branch is a copy of the master branch as well as the local file changes, so it says
error: Your local changes to the following files would be overwritten by merge
.
那么,如何将另一个存储库中的分支提取到本地存储库中的新分支中呢?
I hope that makes sense. If not, this is my repository: https://github.com/MatthewLM/cbitcoin
正如您所看到的,有人使用分支“ linuxBuild”创建了一个新的存储库: https://github.com/austonst/cbitcoin/tree/linuxBuild
我要马修 LM/比特币在本地的分支机构。
我怎么能这么做?