错误: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 'abc'.: Permission denied

时间: 2024-10-25 09:24:07

错误:fatal: could not create work tree dir 'abc'.: Permission denied的相关文章

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.gitfatal: could not create work tree dir 'IPToPosition': No such file or directory 这个看一下执行目录的路径==>~/Windows10 (master) 切换到根目录:cd ~ 再输入指令就ok了 [email prot

git clone 故障 fatal could not create work tree dir

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

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.

laravel错误处理...app/storage/sessions...failed to open stream: Permission denied

方法:到laravel跟目录下执行如下操作: 1)php artisan cache:clear 2)chmod -R 777 app/storage 3)php artisan dump-autoload 版权声明:本文为博主原创文章,未经博主允许不得转载.

编译依赖于React Native0.46.4的React Native IOS工程时,出现错误“fatal error: 'React/RCTEventEmitter.h' file not found”

我的环境: WebStorm 2017.2Build #WS-172.3317.70, built on July 14, 2017 JRE: 1.8.0_152-release-915-b5 x86_64JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.12.6 Xcode8.3.3(8E3004b) 网上搜索,可以解决我的问题的网址:https://stackoverflow.com/questions/41663002

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 ‘x/.git/index.lock‘’

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

SourceTree不出现用户登录窗口,提示错误fatal: unable to access'...'; error setting certificate verify locations

SourceTree不出现用户登录窗口,提示错误fatal: unable to access'...'; error setting certificate verify locations; ...\Git\mingw64\libexec\ssl\certs 去查看这个这个目录下的文件是否存在,不存在则放到对应的地方即可. SourceTree不出现用户登录窗口,提示错误fatal: unable to access'...'; error setting certificate verif