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
You need to add the following to your ~/.gitconfig file:
~/.gitconfig
[rebase] autosquash = true
This will automatically achieve the same as what this answer shows.
I got this from here.