Quantcast
Viewing latest article 26
Browse Latest Browse All 80

Answer by thestar for How do I delete a commit from a branch?

To delete in local branch, use

git reset --hard HEAD~1

To delete in a remote branch, use

git push origin HEAD --force

Viewing latest article 26
Browse Latest Browse All 80

Trending Articles