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

 

相关文章:

  • 2021-07-20
  • 2021-08-24
  • 2021-12-21
  • 2022-02-18
  • 2021-06-06
  • 2021-10-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
相关资源
相似解决方案