使用 简化 Git 分支的历史记录后git rebase -i,我在使用遥控器时遇到了一些麻烦:
$ git push remote-name branch-name
CONFLICT (add/add): Merge conflict in ...
error: failed to push some refs to 'ssh://...'
$ git pull remote-name branch-name
...
Automatic merge failed; fix conflicts and then commit the result.
$ git mergetool
$ git commit -m "Merge"
Run Code Online (Sandbox Code Playgroud)
现在分支的历史被搞砸了,在我第一次提交之前的某个看似随意的点之后,我的提交出现了两次(gitk 中的平行线)。我试过了git rebase -i,但现在它抱怨它“无法应用 123abc...”。如何摆脱并行提交?
| 归档时间: |
|
| 查看次数: |
7281 次 |
| 最近记录: |