Monday, February 16, 2015

Git: Reverting Back Multiple Commits

Let's say you want to roll back the Git repository back to a specific commit e.g. by getting rid of the last 8 commits. This is how it's done:
git revert HEAD~8..HEAD

No comments:

Post a Comment