git revert <commit>
Revert the changes introduced by a specific commit
Git revert introduces a new commit that undoes the changes introduced by the commit passed as parameter, i.e. <commit>
.
In some scenarios undoing the changes in <commit>
will conflict with changes introduced in the branch at a later point. If that's the case, a process for resolving the command will be initiated during which it will be possible to amend the conflicted files and proceed forward git revert --continue
, skip the commit that conflicts with <commit>
using git revert --skip
or abort the whole operation using git revert --abort
.
Specific examples:
git revert 9c1eebc
Sign in to enable bookmarking, reminders, progress-tracking and more...
Related