Lab2, Git Commands
"git reset" command git reset command is used for undoing different types of changes. Using it we can either discard commits in our private branch or throw away uncommitted changes. You can pass different parameters to your reset command in order to determine the command's scope. git reset command has 3 different modes: --soft The staged snapshot and working directory aren't changed. --mixed (default) The staged snapshot is updated to match your commit, the working directory isn't affected. --hard The staged snapshot and working directory are both affected. The most frequently used but at the same time the most dangerous option. It completely erases things you no longer want to have. Removing your last commit example For example, we committed some changes to our file, but made a mistake and want to revert those changes. One of the ways to do that is to use"reset". git reset HEAD~1 command will throw away the lat...