0 votes
in Git by

What is ‘git reset’ is used for? What is the default mode of this command?

1 Answer

0 votes
by

Git reset is a powerful command for undoing local changes to the state of a Git repo. This command resets the current HEAD to the specified stage.

It resets both the index and the working directory to the state of your last commit. Git reset has three modes i.e. soft, hard and mixed. The default mode of operation is mixed.

Related questions

+1 vote
asked Jul 25, 2019 in Git by SakshiSharma
+1 vote
asked Jul 25, 2019 in Git by SakshiSharma
...