Git Clean fd
If you want to remove the directories which are not tracked by git forcibly then we can use the option “-fd”.
git clean -fd
“- f” is force “-d” represents directories while executing the “-fd” make sure you have taken a backup of the directories. Make sure you use the dry run option by this you get to know which files are actually going to be affected.
Git – Clean
When working on a Git repository, it’s common to accumulate untracked files and directories over time. These can clutter your working directory and make it difficult to manage your project efficiently. The git clean
command is a powerful tool that helps you remove these untracked files and directories, keeping your working directory clean and organized. This article will provide a comprehensive guide on how to use the git clean
command effectively.