The function of ‘Git Reset’ is to reset your index as well as the working directory to the state of your last commit.