EasyConceptGit
What does git reset --soft, --mixed and --hard do?
What a good answer covers
All move the branch pointer to the given commit. --soft keeps changes staged, --mixed (the default) keeps them in the working tree but unstaged, and --hard discards them from both index and working tree.
PreviousWhat is the difference between git fetch and git pull?Next How is git revert different from git reset?