git pull命令模式

git pull 默认等于 git fetch + git merge
git pull --rebase 等于 git fetch + git rebase
git pull -–squash 等于 git fetch + git merge --squash

rebase可以将当前自己的commit置于master的最新修改之后

下面的配置可以将git pull配置为默认是rebase

git config --global branch.autosetuprebase always
原文地址:https://www.cnblogs.com/mengff/p/7852700.html