memoir/pages/git/revert-commit.md

217 B

Revert branch to commit

Revert a branch to a certain commit, discarding newer ones.

# Specific commit
git reset --hard a1d6424

# Commits back
git reset --hard HEAD@{3}
# Push
git push -f