错误:git checkout-index:无法创建文件(权限被拒绝) [英] error: git checkout-index: unable to create file (Permission denied)

查看:1698
本文介绍了错误:git checkout-index:无法创建文件(权限被拒绝)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从github中拉出时,我收到一个奇怪的错误。我可以绕过这个或强制它?我曾经使用过sudo,但是我怀疑它会起作用,但是这导致了其他问题。

When I try and pull from github I get a strange error. Can I bypass this or force it? I have used sudo before which I suspect would work however this caused other problems.

推荐答案

在我的情况下,与git受控目录添加为崇高项目中的文件夹。关闭崇高后,我可以切换分支而不出问题。

In my case it was having sublime text open with the git controlled directory added as a folder in the sublime project. After closing sublime I was able to switch branches without a problem.

这篇关于错误:git checkout-index:无法创建文件(权限被拒绝)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆