Articles → GIT → Revert Command In GitRevert Command In GitIn this article, we will discuss revert command in git.Purpose Revert function reverts the single commit.Syntax git revert <commit_id>Example Consider the following commits.We have added 2 files.When the command git revert executes, you will get the following message.The file 1.txt is deleted. Posted By - Karan Gupta Posted On - Friday, July 19, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
git revert <commit_id>
Query/Feedback