Home > other >  fatal: could not create work tree dir <repo-name>. File exists
fatal: could not create work tree dir <repo-name>. File exists

Time:02-21

Running git clone <repo> results in fatal: could not create work tree dir <repo-name>. File exists.

This is unexpected.

CodePudding user response:

Make sure you don't have any other terminals/windows open to that folder. Check your other "virtual desktops" if you have any.


I just had this happen to me, everything told me the folder was gone, but I had a terminal with the path open even though it didn't exist. This might be a Windows only problem.

Just a tip for future me, and anyone else who might be close to loosing another 15 minutes of their life.

  •  Tags:  
  • git
  • Related