Another git / github fu question

I have another question about working with pull requests. I submitted a pull request (2493) but it was rejected by the automatic checkers. The issue was easy to fix (blank line at end of a file).

My question is more general than this specific instance: What git steps do I use to update a patch so that the pull request, when it is eventually approved, appears as a single commit, instead of the multiple commits I actually use to arrive at the final version?


Per policy, the maintainers always “squash and merge” pull requests, which means that it always ends up getting squashed to a single commit when it’s merged. So, you don’t need to do anything on your part to make this happen, you can make as many commits as you need, we take care of it while merging.