how to reset the restored unstaged file in git code example
Example 1: git discard unstaged files
git stash save --keep-index --include-untracked
Example 2: what to do with unstaged changes after reset
git rm --cached -r .
git stash save --keep-index --include-untracked
git rm --cached -r .