我有远程存储库。我愿意:
git clone https://mylogin@bitbucket.org/mylogin/myrepo.git
克隆成功。我有 git 树:
C(master)
| B:A
| /
乙 /
|
一个
|
A0
|
A01(原点/头)(原点/主)
|
(一些提交)
我需要:
B:A
C(master) /
我需要将分支 B 重新设置为 C(master) 我做什么:
git checkout b1
Switched to branch 'b1'
git rebase master
First, rewinding head to replay your work on top of it...
Applying: B:A
Using index info to reconstruct a base tree...
M index1.txt
Falling back to patching base and 3-way merge...
Auto-merging index1.txt
CONFLICT (content): Merge conflict in index1.txt
Failed to merge in the changes.
Patch failed at 0001 B:A
The copy of the patch that failed is found in:
/pth/to dir/.git/rebase-apply/patch
When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".
git branch
* (no branch)
b1
master
我必须做什么?我可以切换到分支 b1,解决冲突并提交,但这无济于事(我测试过)。