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

Open 1 Answers 37 Views Technology
What is ‘git reset’ is used for? What is the default mode of this command?

1 Answer

0

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.

by (278k points)
...