Unstaged changes after reset code example
Example 1: how to undo a modified file in git
git checkout -- .
git checkout -- *
git checkout -- :/
git restore <file>
Example 2: discard unstaged changes git
git checkout -- .
git checkout -- path/to/file/to/revert
Example 3: revert unstaged changes git
git checkout -- path/to/file/to/revert
Example 4: revert unstaged changes git
git checkout -- .
Example 5: what to do with unstaged changes after reset
git reset --hard
Example 6: what to do with unstaged changes after reset
git rm --cached -r .