“与”之间有区别吗;git pull--重新设置基“;及;git fetch&&;git rebase——autostash获取“U头”;?
标题说明了一切。以下两者之间是否有区别:“与”之间有区别吗;git pull--重新设置基“;及;git fetch&&;git rebase——autostash获取“U头”;?,git,git-merge,git-rebase,git-pull,git-fetch,Git,Git Merge,Git Rebase,Git Pull,Git Fetch,标题说明了一切。以下两者之间是否有区别: git pull--rebase--autostash 及 git-fetch&&git-rebase-autostash-fetch\u-HEAD 当我们这样做的时候,在: git pull 及 git获取和git合并 谢谢 下面提到的命令 git pull --autostash 将隐藏您的本地更改,然后执行pull pull是fetch和merge的组合。 fetch不会将远程更改合并到本地分支。 所以 类似于 git fetch &&a
git pull--rebase--autostash
及
git-fetch&&git-rebase-autostash-fetch\u-HEAD
当我们这样做的时候,在:
git pull
及
git获取和git合并
谢谢 下面提到的命令
git pull --autostash
将隐藏您的本地更改,然后执行pull
pull
是fetch
和merge
的组合。
fetch
不会将远程更改合并到本地分支。
所以
类似于
git fetch && git merge
希望这能回答您的问题。执行rebase时,
pull
命令会添加--fork point
。在执行合并时,它会稍微更改合并消息。在非常旧的Git版本中(早于--autostash
),还有一些附加的细微差别。“Git-pull--rebase
类似于Git-fetch&&Git-merge
”当然不是-它类似于Git-fetch&&Git-rebase
。
git fetch && git merge