git reset remove untracked code example
Example 1: git discard untracked
# if you want to clean directories as well add -d
git clean -fd
Example 2: clear untracked files git
git clean -f
# if you want to clean directories as well add -d
git clean -fd
git clean -f