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

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

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

切换到根目录:cd ~

再输入指令就ok了

[email protected] 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.

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

时间: 2024-08-08 22:10:09

Git异常:fatal: could not create work tree dir 'XXX': No such file or directory的相关文章

错误:fatal: could not create work tree dir 'abc'.: Permission denied

Sophia:qc sophia$ git clone [email protected]:abc fatal: could not create work tree dir 'abc'.: Permission denied 原因 cd 到qc-amend目录,使用ls -l 可以看到qc/目录的权限: ??? 可以看到该目录只对root用户有写的权限,只需执行sudo chmod 777 qc/ 即可. 错误:fatal: could not create work tree dir 'ab

git clone 故障 fatal could not create work tree dir

问题如上图,原因是openWRT目录权限的问题,该目录是新创建的查看目录权限后发现该目录只对root有读写权限,对所有者及其他用户无读写权限.最简单的chmod 777 openWRT即可解决问题.

ObjectARX2012错误1 fatal error C1083: 无法打开包括文件:“arxHeaders.h”: No such file or directory; fatal error C1083: 无法打开包括文件:“map”: No such file or directory

问题1:fatal error C1083: 无法打开包括文件:“arxHeaders.h”: No such file or directory: 解决办法:这个问题很明显,是因为没有在工程属性里包含相关的库目录和头文件目录所致.在包含目录里添上包含目录路径:D:\ObjectARX_2012_Win_64_and_32Bit\inc-x64:D:\ObjectARX_2012_Win_64_and_32Bit\inc.在库目录里添上库目录路径:D:\ObjectARX_2012_Win_64

git 解决fatal: Unable to create ‘x/.git/index.lock‘’

今天在分支上切换到主分支发生fatal: Unable to create 'D:/xxxxxx/.git/index.lock': File exists.的错误,在这里记录下备查. 解决方法是: 执行rm -f操作就可以切换到主分支了. 具体命令是:rm -f D:/xxxxxx/.git/index.lock

fatal: Could not jump back into original cwd: No such file or directory

今天在配置git自动在提交时从bare库中检出到应用目录时,竟然出现这个错误,折腾了好久,搞不明白怎么回事,经过测试,发现是git本身的问题, 就是没摸着是什么引起的; 通过google.终于发现说是git版本目录与work目录不允许相同的前缀,也就是work-tree目录=qidizi 而git-dir=qidizi.git 就是work-tree目录完全就是git-dir目录前缀时,就会引起这个bug. 解决方法是让work-tree目录不同,如qidizi.a 以上问题,好像直接使用she

EXCEPTION:FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS

FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS Hi, Today I will share you my other experience using git control system, it happened to me after I’ve created a branch, when adding my changes to remote or even committed my file I’ve started to s

[转]Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法

参考资料: http://sheshui.me/articles/git-quickly-tutorial-20120517 http://stackoverflow.com/questions/9282632/git-index-lock-file-exists-when-i-try-to-commit-but-cannot-delete-the-file 我的说明: 我操作的是ubuntu环境.window远程 1 若在window下远程打开操作窗口(不是console),进入.git目录删

git提交代码出现错误fatal: Unable to create '项目路径/.git/index.lock': File exists.

git提交代码出现错误fatal: Unable to create '项目路径/.git/index.lock': File exists. 具体出错代码如下: 具体原因不详,在stackoverflow上查找了很久,也不清楚原因,但是stackoverflow给出了解决的方法. 解决方法: 在当前项目下打开git bash,运行如下命令: rm -f ./.Git/index.lock 只为成功找方法.大胆的尝试,下一个fun就是你的fun! git提交代码出现错误fatal: Unable

git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists.

git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists. exists 解决办法 rm -f ./.git/index.lock on Windows del .git\index.lock git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists.