Full AWS Practitioner Certification Question

What does the "Squash and merge" option do when merging a pull request?