I did a pull request but after that I made some commits to the project locally which ended polluting my pull request, I tried to remove it but without any luck.
I fo
So do the following ,
Lets say your branch name is my_branch and this has the extra commits.
git checkout -b my_branch_with_extra_commits (Keeping this branch saved under a different name)gitk (Opens git console)git checkout my_branch gitk (This will open the git console )reset branch to here" git pull --rebase origin branch_name_to _merge_togit cherry-pick Now look at the local branch commit history and make sure everything looks good.