Reverting batch commits
git checkout -b <new_branch> <ref_branch>
git reset <previous_commit_hash>
git add -p
git clean -f
git reset --hard
Amending commit with open Pull request
git add -A
git commit --amend
git push <remote> -f <branch>
Converting batch commits into one -> Merge all the commits into the first one
git reset <first_commit_hash>
git add -p
git commit --amend