How to avoid merge commits from Git pull when pushing to remote

前端 未结 4 1138
抹茶落季
抹茶落季 2021-01-30 13:06

I have a repository and some local changes to commit. Before committing, I pulled the changes onto my local using Egit in Eclipse.

It creates a merge commit and I submit

4条回答
  •  日久生厌
    2021-01-30 14:00

    You can run

    git config --global branch.autosetuprebase always
    

    to make git pull --rebase the default behaviour for git pull.

提交回复
热议问题