If you want to permanently remove a commit from your branch we can use the git reset feature. Let’s have a look.
git reset