Is it possible to configure git to squash merges, but not squash changes from pulls? If it’s possible, how would I configure git this way?
I configured git via git config branch.<name>.mergeoptions --squash
While that works for squashing the commits from merged branches, it also tries to squash incoming changes when doing a pull.
In your ~/.gitconfig or .git/config per project basis.
Edit: Overriding built-in commands are not possible, as per the git-config manpage. Updated answer to suggest having a separate command for just this.