Git Clean Has The Power To Undo All Untracked Changes To Your Repository
| Topic | Source |
|---|---|
| 🖥️ Tech | git reset --hard HEAD leaves untracked files behind - Stack Overflow |
To reset your Git repository and remove untracked files, you can use the
git cleancommand.
Here’s how:
git clean -n
git clean -f
git clean -fd
git clean -fdx
Please be careful when using these commands as they will permanently delete the untracked and/or ignored files.