git drop unstaged changes code example
Example 1: undo unstaged changes git
git checkout -- .
Example 2: git delete unstaged files
git clean -df
Example 3: what to do with unstaged changes after reset
git reset --hard
git checkout -- .
git clean -df
git reset --hard