【发布时间】:2020-10-20 20:54:01
【问题描述】:
以下问题Can “git pull” automatically stash and pop pending changes 有使用两者的解决方案:
-
git pull --rebase --autostash -
git pull --ff-only
我有点困惑我应该使用哪一个。他们真的完成了同样的结果吗?非常相似的question被问到哪个没有--autostash参数以及--rebase
【问题讨论】:
-
git pull --ff-only只有在本地或远程发生变化时才能成功,如果本地和远程都有提交,则会触发错误。
标签: git git-rebase git-pull