1. Accidentally push lines containing debug logs with the actual fix into a commit in a dev branch. Do not push. 2. Start creating a pull request, but check the diff. Notice the debug logs are in the diff. 3. Run `git reset --soft HEAD~` in the terminal. Unstage the lines containing the debug logs using the SCM diff view. 4. Commit with the same commit message again by pressing the up arrow in the SCM commit message inputbox to get the last message. 5. Start creating a pull request again, but check the diff. 6. :bug: The debug logs are still in the diff. 7. Create a draft PR and check the diff. 8. :bug: The debug logs are still in the diff. GitHub shows the correct diff. 
git reset --soft HEAD~in the terminal. Unstage the lines containing the debug logs using the SCM diff view.