【发布时间】:2020-08-24 16:56:01
【问题描述】:
标题说明了一切。有没有区别:
git pull --rebase --autostash
和
git fetch && git rebase --autostash FETCH_HEAD?
当我们这样做的时候,在:
git pull
和
git fetch && git merge?
谢谢!
【问题讨论】:
-
pull命令在执行 rebase 时添加--fork-point。它在进行合并时会稍微改变合并消息。在非常旧的 Git 版本中(早于--autostash),还有一些额外的细微差别。
标签: git git-merge git-rebase git-pull git-fetch