0 votes
in Git by
What is the difference between reverting and resetting?

1 Answer

0 votes
by

Candidates could find this entry among new DevOps interview questions for GitHub interviews. The reset command in git helps in reverting local changes to the state of a Git repository. “git reset” works on commit history, the working directory, and the staging area. The revert command in git helps in the creation of a new commit that negates the changes from the previous commit. The revert command helps in adding a new history to the project without modifying existing history.

Related questions

0 votes
asked Aug 24, 2023 in Git by JackTerrance
0 votes
asked Mar 26, 2021 in Git by rajeshsharma
...