`git rebase foo bar` 和 `git checkout bar 之间的区别; git 变基 foo`?
Difference between `git rebase foo bar` and `git checkout bar; git rebase foo`?
我都看过了,他们似乎在做同样的事情。
1) git rebase foo bar
2) git checkout bar
;
git rebase foo
它们一样吗?而且,这是否取决于您执行 1) 时所在的分支?
那些是一样的东西。查看 git-rebase
:
上的文档
If is specified, git rebase will perform an automatic git checkout before doing anything else. Otherwise it remains on the current branch.
我都看过了,他们似乎在做同样的事情。
1) git rebase foo bar
2) git checkout bar
;
git rebase foo
它们一样吗?而且,这是否取决于您执行 1) 时所在的分支?
那些是一样的东西。查看 git-rebase
:
If is specified, git rebase will perform an automatic git checkout before doing anything else. Otherwise it remains on the current branch.