Squash Commits
For my own workflow I find that git pull –rebase origin main is nice because I can just pull in the changes from main without a merge commit.
For the squashing, I find git rebase -i origin/main to have a nice workflow.
After that, just git push –force-with-lease and you should be all set. 😄
REF: https://github.com/oalders/go-for-perl-hackers/pull/11#issuecomment-1031792697