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