If not pushed yet:
git reset --soft HEAD^If already pushed – creates a new commit with the specified commit being popped out:
git revert <commit-hash>If not pushed yet:
git reset --soft HEAD^If already pushed – creates a new commit with the specified commit being popped out:
git revert <commit-hash>