当前位置: 代码迷 >> .NET相关 >> Git错误:fatal: could not create work tree dir 'XXX' No such file or directory
  详细解决方案

Git错误:fatal: could not create work tree dir 'XXX' No such file or directory

热度:501   发布时间:2016-04-24 02:39:08.0
Git异常:fatal: could not create work tree dir 'XXX': No such file or directory

DNT@DESKTOP-PTACRF6 MINGW64 ~/Windows10 (master)
$ git clone git@github.com:dunitian/IPToPosition.git
fatal: could not create work tree dir 'IPToPosition': No such file or directory

这个看一下执行目录的路径==>~/Windows10 (master)

 

切换到根目录:cd ~

 

再输入指令就ok了

DNT@DESKTOP-PTACRF6 MINGW64 ~
$ git clone git@github.com: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.

  相关解决方案