Git: difference “git rebase origin/branch” VS “git rebase origin branch”

前端 未结 3 564
孤街浪徒
孤街浪徒 2021-02-05 05:03

Does anyone know what is the difference? Seems to me, it is the same. But when I run it, it didn\'t do the same thing:

git rebase origin/branch - ok rebases

3条回答
  •  萌比男神i
    2021-02-05 05:45

    git rebase  
    

    is equal to

    git checkout 
    git rebase 
    

    By default is HEAD.

    [1] https://www.kernel.org/pub/software/scm/git/docs/git-rebase.html

提交回复
热议问题