Instead use fast-forward merge. Note: Squash merge - Complete all pull requests with a squash merge, creating a single commit in the target branch with the changes from the source branch. No fast-forward merge - This option merges the commit history of the source branch when the pull request closes and creates a merge commit in the target branch. Reference: https://docs.microsoft.com/en-us/azure/devops/repos/git/branch-policies