本文介绍了打开.git / config:权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
C:\ Users \Inspiron\.git\config
文件夹为空,命令 $ git config user.email user @ gmail.com
返回错误:打开.git / config:权限被拒绝。 我尝试设置缓冲区大小,但得到相同的错误。
解决方案
这不是一个文件夹,它的主要配置文件为git。
在这里您可以看到配置文件
在windows下权限被拒绝有点奇怪。检查文件的权限。也许你已经删除了扩展权限中的权限。
C:\Users\Inspiron\.git\config
folder is empty and command $git config user.email user@gmail.com
returns error: opening .git/config: permission denied.I try to set post buffer size,but get same error.
解决方案
Thats not a folder its the main configuration file for git.
Here you can see the files for configuration
http://git-scm.com/docs/git-config
Permission denied under windows its a bit strange. Check the permissions of the file. Perhaps you have removed the Permissions in the extended permissions.
这篇关于打开.git / config:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!