git clean all code example
Example 1: git clean
//Remove untracked files
git clean -f
//Remove untracked directories and files
git clean -fd
//Remove untracked ignored files
git clean -fX
//Remove all untracked files
git clean -fx
Example 2: git clean fdx
//Remove untracked files directories and ignored files
git clean -fdx
Example 3: git cleanup remove removed
git remote prune origin