How can I pull all remote changes with rebase instead of merge?

后端 未结 4 1220
臣服心动
臣服心动 2020-12-28 15:23

I can pull changes using git pull, but it merges my local commits. Is there a git rebase equivalent with which I can pull in remote changes?

4条回答
  •  北海茫月
    2020-12-28 16:03

    To change default behavior from merge to rebase In git >= 1.7.9:

    git config --global pull.rebase true

    remove global if you want to apply for current repo only

提交回复
热议问题