GitHub pull request showing commits that are already in target branch

前端 未结 11 1194
孤城傲影
孤城傲影 2020-12-12 09:29

I\'m trying to review a pull request on GitHub to a branch that isn\'t master. The target branch was behind master and the pull request showed commits from master, so I merg

11条回答
  •  青春惊慌失措
    2020-12-12 10:19

    You need to add the following to your ~/.gitconfig file:

    [rebase]
        autosquash = true
    

    This will automatically achieve the same as what this answer shows.

    I got this from here.

提交回复
热议问题