Git Git Clean Clean All Untracked Directories

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

git clean -fd

Will remove all untracked directories and the files within them. It will start at the current working directory and will iterate through all subdirectories.

git clean -dn

Will preview all directories that will be cleaned.



Got any Git Question?