git clean -fdx should never be hidden in a regular yarn clean script. It's only a matter of time before a dev accidentally gets rekt!
when you run git clean -fdx, you are telling Git to forcefully remove all untracked files and directories, even those ignored by your .gitignore rules. This can be a useful command when you want to clean up your working directory and remove all untracked files and directories that may have accumulated during development or other operations. However, be extremely cautious when using git clean -fdx, as it will permanently delete untracked files, and there is no easy way to recover them once they are removed.
git clean -fdx
should never be hidden in a regularyarn clean
script. It's only a matter of time before a dev accidentally gets rekt!when you run git clean -fdx, you are telling Git to forcefully remove all untracked files and directories, even those ignored by your .gitignore rules. This can be a useful command when you want to clean up your working directory and remove all untracked files and directories that may have accumulated during development or other operations. However, be extremely cautious when using git clean -fdx, as it will permanently delete untracked files, and there is no easy way to recover them once they are removed.