If you’re using GitHub try “Allow squash merging” https://docs.github.com/en/github/administering-a-repository...