恢复了我在分支上的所有提交仍然在 rebase 上发生冲突
Reverted all my commits on branch still getting conflicts on rebase
我一直在做一个功能 b运行ch 因为请病假 origin/develop
b运行ch 与我的 feature
不同步b运行ch.
由于我有少量更改的行,但在很多 类 中,我决定只恢复我在 feature
b运行ch 中的所有更改,推送然后 rebase origin/develop
到我的 feature
b运行ch 以避免在解决多个 类 上的冲突时出现人为错误,只需在它之后手动添加我的更改。
然后我查看了 origin/develop
、运行 git pull
、查看了我的 feature
b运行ch 和 运行 git rebase origin/develop
.
那个rebase和我的b运行ch还是有冲突。这怎么可能,我应该怎么做才能达到我最初的目标?在 feature
b运行ch 上有一个干净的石板以安全地从 origin/develop
?
获取所有更改
我在 git bash:
中得到了这个
Patch failed at 0001 DEV-1234 Initial commit
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
所以它显然在初始提交中遇到了冲突,并且此时还没有进入恢复状态。我应该跳过 git rebase --skip
的提交吗?
或者,因为此时我可以在 b运行ch 上没有任何更改,所以我可以跳过初始提交和 b[=41 上的恢复提交=]ch 所以 rebase 只是自己清理石板。
在我的情况下,因为我不希望我的任何更改留在我的功能分支中我可以将 origin/develop 变基到我的功能中分支并跳过我在该变基中的所有提交。没有冲突和干净的石板。我再说一遍,仅当您想摆脱该分支中的更改时才执行此操作。
我一直在做一个功能 b运行ch 因为请病假 origin/develop
b运行ch 与我的 feature
不同步b运行ch.
由于我有少量更改的行,但在很多 类 中,我决定只恢复我在 feature
b运行ch 中的所有更改,推送然后 rebase origin/develop
到我的 feature
b运行ch 以避免在解决多个 类 上的冲突时出现人为错误,只需在它之后手动添加我的更改。
然后我查看了 origin/develop
、运行 git pull
、查看了我的 feature
b运行ch 和 运行 git rebase origin/develop
.
那个rebase和我的b运行ch还是有冲突。这怎么可能,我应该怎么做才能达到我最初的目标?在 feature
b运行ch 上有一个干净的石板以安全地从 origin/develop
?
我在 git bash:
中得到了这个Patch failed at 0001 DEV-1234 Initial commit
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
所以它显然在初始提交中遇到了冲突,并且此时还没有进入恢复状态。我应该跳过 git rebase --skip
的提交吗?
或者,因为此时我可以在 b运行ch 上没有任何更改,所以我可以跳过初始提交和 b[=41 上的恢复提交=]ch 所以 rebase 只是自己清理石板。
在我的情况下,因为我不希望我的任何更改留在我的功能分支中我可以将 origin/develop 变基到我的功能中分支并跳过我在该变基中的所有提交。没有冲突和干净的石板。我再说一遍,仅当您想摆脱该分支中的更改时才执行此操作。