# Perform a "dry run" of git clean. # This will show you which files are going to be removed without actually doing it. git clean -n # Remove untracked files from the current directory. # This will not remove untracked folders or files specified by .gitignore. git clean -f # Remove untracked files, but limit the operation to the specified path. git clean -f# Remove untracked files and untracked directories from the current directory. git clean -df # Remove untracked files from the current directory as well as any files that Git usually ignores. git clean -xf