相关疑难解决方法(0)

git rebase,跟踪'本地'和'远程'

在进行git rebase时,我常常难以解决在解决冲突时"本地"和"远程"发生的事情.我有时会产生这样的印象:他们将一方提交交换到另一方提交.

这可能(肯定)因为我还没有正确理解.

变基础时,谁是'本地',谁是'偏远'?

(我使用P4Merge解决冲突)

git conflict rebase

161
推荐指数
2
解决办法
3万
查看次数

显示当前的git交互式rebase操作

当处于交互式rebase的中间时,例如git rebase -i HEAD~12添加/编辑一些提交时,我常常对我正在编辑的提交感到困惑,特别是当存在合并冲突时:

> git status
rebase in progress; onto 55d9292
You are currently rebasing branch 'master' on '55d9292'.
  (fix conflicts and then run "git rebase --continue")
  (use "git rebase --skip" to skip this patch)
  (use "git rebase --abort" to check out the original branch)

Unmerged paths:
  (use "git reset HEAD <file>..." to unstage)
  (use "git add <file>..." to mark resolution)

        both modified:   file

no changes added to commit (use "git add" and/or "git commit -a")
Run Code Online (Sandbox Code Playgroud)

如何清楚了解当前状态中涉及的所有补丁?例如,什么是基本补丁,我正在"挑选"哪个补丁,合并冲突来自哪个补丁?

git

6
推荐指数
2
解决办法
901
查看次数

标签 统计

git ×2

conflict ×1

rebase ×1