
https://learngitbranching.js.org/?locale=zh_CN
高级话题的第一题
合并多个分支成一条线,答案是这样的
$ git rebase main bugFix $ git rebase bugFix side $ git rebase side another $ git rebase another main 和下面有区别吗,提示通过了
$ git rebase c2 c3 $ git rebase c3' c6 $ git rebase c6' c7 $ git rebase c7' main 1 sLvxq6Ya 2022 年 7 月 29 日 你这个在题里没问题,但实际场景这么干肯定不行 参考 git 文档, 由于 branch 本质是对 commit 的引用,所以光从语法上来说,很多时候 branch 和 commit 是可以相互替代的 https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell 但是实际上你这种写法只是给自己添了没必要的麻烦,建议好好按他的教程学吧 |
2 xmrvabc2 2022 年 10 月 12 日 这个网站的答案在哪里看呢 |