Git exception: fatal: could not create work tree dir’XXX’: No such file or directory

DNT@DESKTOP-PTACRF6 MINGW64 ~/Windows10 (master)
$ git clone [email protected]:dunitian/IPToPosition.git
fatal: could not create work tree dir’IPToPosition’: No such file or directory

Look at the path of the execution directory==>~/Windows10 (master)

 

Switch to the root directory: cd ~

 

Enter the command again and it’s ok

DNT@DESKTOP-PTACRF6 MINGW64 ~
$ git clone [email protected]:dunitian/IPToPosition.git
Cloning into’IPToPosition’…
Warning: Permanently added the RSA host key for IP address ‘192.30.252.130’ to the list of known hosts.
warning: You appear to have cloned an empty repository.
Checking connectivity… done.

Similar Posts: