标题说明了一切。之间有什么区别:
git pull --rebase --autostash
和
git fetch && git rebase --autostash FETCH_HEAD
?
而当我们在它之间时:
git pull
和
git fetch && git merge
?
谢谢!
以下提到的命令
git pull --autostash
将存储您的本地更改,然后执行pull
。
pull
是fetch
和merge
的组合。fetch
不会将远程更改合并到本地分支。因此,
git pull
类似于
git fetch && git merge
希望这可以回答您的查询。