how to delete your old commit with a deleted branch pushed to remote code example
Example: remove branch not published yet
First checkout another branch
git checkout <other branch>
Now delete branch
git branch -D <deleting brach>
First checkout another branch
git checkout <other branch>
Now delete branch
git branch -D <deleting brach>