How to revert previous commit in git?
Answer / 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 |
Mention some of the best graphical GIT client for LINUX?
What is git fork? How to create tag?
What are the benefits of using version control system?
How git instaweb is used?
What is a repository in GIT?
What is a ‘conflict’ in git?
What is ‘git status’ is used for?
What does ‘hooks’ comprise of in git?
What is the difference between ‘git remote’ and ‘git clone’?
How to rebase master in git?
Why GIT better than Subversion?
Mention the various git repository hosting functions.