如果cherry-pick遇到冲突,git会提示执行git cherry-pick --continue
You are currently cherry-picking commit 71e26b4f.
(all conflicts fixed: run "git cherry-pick --continue")
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
Changes to be committed:
modified: app/file1.ts
modified: app/file2.ts
Run Code Online (Sandbox Code Playgroud)
此时,我们也可以这样做git commit。
git cherry-pick --continue那么和之间有什么区别git commit?
我们有两个分支Branch1和Branch2,彼此相差100个提交.我从Branch1创建了一个新的BranchA分支.在BranchA上没有提交任何提交.
有没有办法改变BranchA看起来它是从Branch2分支出来的,所以我可以提交一个提交并提出针对Branch2的拉取请求 - 但它不会从Branch1进行任何提交?