在Github上,我有:
- 主分支,假设为
github_master_branch
还有一个个人(远程)分支,假设为
github_personal_branch
过去我从GitHub克隆
我使用Pycharm检出了
github_personal_branch
并创建了一个本地分支,名称相同(但是假设它是local_personal_branch
)从
local_personal_branch
推送到github_personal_branch
现在,在github_personal_branch
上,我有github_master_branch
前后的提交。
我想要获取来自github_master_branch
的更改,将其合并到我的local_personal_branch
,解决冲突,然后将其推送到github_personal_branch
。
我尝试过rebase,但实际上得到了许多提交,所有这些提交都是
github_master_branch
前进的,而不是移动头部。我也尝试了Pycharm中的rebase选项,多种组合,但我不太理解
onto
、from
字段的逻辑。我尝试了第二次手动rebase,但是除了master之外,我得到的很旧的代码在一段时间前是可用的
local_personal_branch
。