git restore deleted unstaged file code example
Example 1: git discard unstaged files
git stash save --keep-index --include-untracked
Example 2: git delete unstaged files
git clean -df
git stash save --keep-index --include-untracked
git clean -df