how to discard modified files in git code example
Example 1: git reset one file
git checkout HEAD -- my-file.txt
Example 2: git discard unstaged files
git stash save --keep-index --include-untracked
git checkout HEAD -- my-file.txt
git stash save --keep-index --include-untracked