Thursday, 27 December 2018

GIT: Revert commits

30.1. Reverting a commit

git revert You can revert commits via the git revert command. This command reverts the changes of a commit.
Such commits are useful to document that a change was withdrawn.

30.2. Example: Reverting a commit

The following command demonstrates the usage of the git revert command.
# revert a commit
git revert commit_id

0 comments:

Post a Comment