git reset --hard HEAD~1
You will be now at previous head. Pull the branch. Push new code. Commit will be removed from git
↧
Answer by Jyotirmoy Upadhaya for How do I delete a commit from a branch?
↧
git reset --hard HEAD~1
You will be now at previous head. Pull the branch. Push new code. Commit will be removed from git