Answer Posted / Nidhi Singh
To revert a specific commit in Git, first checkout the parent commit of the commit you want to revert using `git checkout <parent_commit>`. Then create a new commit with the changes from the parent commit (without the changes introduced by the commit you want to revert) using `git commit --amend`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers