in Technology by (1.8m points)
What is ‘git reset’ is used for? What is the default mode of this command?

1 Answer

0 votes
by (1.8m points)

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