recover unstaged changes after git reset code example
Example 1: revert unstaged changes git
git checkout -- .
Example 2: what to do with unstaged changes after reset
git rm --cached -r .
git checkout -- .
git rm --cached -r .