Posted on
staging is changes that you have added with git add
workingdir is changes that you have not added with git add
git reset --soft [commit]
make the branch point to that commit
git reset --mixed [commit]
(this is the default) make the branch point to that commit, and reset the staging area
git reset --hard [commit]
make the branch point to that commit, and reset everything, including working directory