1.

Can you tell the differences between git revert and git reset?

Answer»
git revert git reset
This command is USED for CREATING a NEW commit that undoes the changes of the previous commit.This command is used for undoing the local changes done in the git repository
Using this command adds a new history to the project without modifying the existing historyThis command operates on the commit history, git index, and the WORKING DIRECTORY.


Discussion

No Comment Found