1. 程式人生 > >git pull命令模式

git pull命令模式

commit 當前 自己 branch con 最新 bsp setup set

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

git pull命令模式