git revert Undo a commit with out changing the course of history

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.
Get Unlimited PRO Access

OR


*Enrollment provides full access to this course (and updates) for life.

Undo a commit with a new commit

command line
git revert <commit-ID> -m "reverting last commit"

Q&A Chat