in Git by
Q:
Explain the difference between reverting and resetting.

1 Answer

0 votes
by
Git reset is a powerful command that is used to undo local changes to the state of a Git repository. Git reset operates on “The Three Trees of Git” which are, Commit History ( HEAD ), the Staging Index, and the Working Directory.

Revert command in Git creates a new commit that undoes the changes from the previous commit. This command adds a new history to the project. It does not modify the existing history.
Click here to read more about GIT
Click here to read more about Insurance

Related questions

+1 vote
asked Aug 16, 2020 in Git by RShastri
0 votes
asked Feb 17, 2020 in Git by SakshiSharma
0 votes
asked Oct 15, 2019 in Git by rajeshsharma
0 votes
0 votes
asked May 23, 2020 in Git by Robindeniel
0 votes
asked Nov 19, 2020 in JQuery by rajeshsharma
...