Skip to content

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.