ghow yo undo changes git before add code example
Example 1: undo unstaged changes git
git checkout -- .
Example 2: git discard unstaged files
git stash save --keep-index --include-untracked
git checkout -- .
git stash save --keep-index --include-untracked