Quantcast
Viewing latest article 22
Browse Latest Browse All 80

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

git reset --hard

git push origin HEAD --force

If one or more of the commits is tagged, delete the tag(s) first. Otherwise the tagged commit is not removed.


Viewing latest article 22
Browse Latest Browse All 80

Trending Articles