File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
book/03-git-branching/sections Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,9 @@ image::images/interesting-rebase-1.png[从一个主题分支里再分出一个
8585$ git rebase --onto master server client
8686----
8787
88- 以上命令的意思是:“取出 `client` 分支,找出 `server` 分支之后的分歧的补丁,
89- 然后把它们在 `master` 分支上重放一遍”。这理解起来有一点复杂,不过效果非常酷。
88+ 以上命令的意思是:“取出 `client` 分支,找出它从 `server` 分支分歧之后的补丁,
89+ 然后把这些补丁在 `master` 分支上重放一遍,让 `client` 看起来像直接基于
90+ `master` 修改一样”。这理解起来有一点复杂,不过效果非常酷。
9091
9192.截取主题分支上的另一个主题分支,然后变基到其他分支
9293image::images/interesting-rebase-2.png[截取主题分支上的另一个主题分支,然后变基到其他分支。]
@@ -146,7 +147,7 @@ image::images/interesting-rebase-5.png[最终的提交历史。]
146147(((rebasing, perils of)))
147148呃,奇妙的变基也并非完美无缺,要用它得遵守一条准则:
148149
149- *不要对在你仓库外的提交上执行变基,别人可能正在基于它来工作 。*
150+ *如果提交存在于你的仓库之外,而别人可能基于这些提交进行开发,那么不要执行变基 。*
150151
151152如果你遵循这条金科玉律,就不会出差错。
152153否则,人民群众会仇恨你,你的朋友和家人也会嘲笑你,唾弃你。
You can’t perform that action at this time.
0 commit comments