I'm getting the "The following untracked working tree files would be overwritten by checkout...please move or remove them before you switch branches" error.
The common fix appears to be git clean
When I type that in, I get no error, but nothing happens. And when I go to check out another branch, I just get the same error as above.
Any reason as to why git clean
would do absolutely nothing?
UPDATE:
More info. git -n
and git -f
do exactly the same...nothing.
If the Git configuration variable clean.requireForce is not set to false, git clean will refuse to delete files or directories unless given -f, -n or -i
-f
and-n
also result in nothing happening.git status
show?git clean
? It will only clean the current working directory and below.-x
?