致命:在./config中为'core.sharedrepository'配置错误值 [英] fatal: bad config value for 'core.sharedrepository' in ./config
问题描述
我刚刚输入了命令: git config core.sharedrepository 1
,我现在收到错误消息:
I just entered the command:git config core.sharedrepository 1
and I am now receiving the error:
fatal:./config中'core.sharedrepository'的错误配置值
fatal: bad config value for 'core.sharedrepository' in ./config
有没有人有任何想法如何解决这个问题?
Has anyone any idea how to fix it?
推荐答案
问题正是这样说的: 1
是该设置的无效值。您可能希望 true
。
The problem is exactly what it's saying: 1
is an invalid value for that setting. You probably want true
.
从 git-config man 页面:
group (或者
true
),这个存储库可以在一个组中的多个用户之间共享(确保所有文件和对象都是可写组的)。当all
(或world
或everyone
)时,存储库将可供所有用户阅读,另外还可以分组。当umask(或false)时,git将使用umask(2)报告的权限。当0xxx
,其中0xxx
是一个八进制数时,存储库中的文件将具有此模式值。0xxx
将覆盖用户的umask值(而其他选项将只覆盖用户的umask值的请求部分)。例如:0660
将使所有者和组的读写可写,但其他人无法访问(相当于组,除非umask是例如0022
)。0640
是一个可读组但不可写组的可读存储库。参见git-init(1)。假设为默认值。
When
group
(ortrue
), the repository is made shareable between several users in a group (making sure all the files and objects are group-writable). Whenall
(orworld
oreverybody
), the repository will be readable by all users, additionally to being group-shareable. When umask (or false), git will use permissions reported by umask(2). When0xxx
, where0xxx
is an octal number, files in the repository will have this mode value.0xxx
will override user’s umask value (whereas the other options will only override requested parts of the user’s umask value). Examples:0660
will make the repo read/write-able for the owner and group, but inaccessible to others (equivalent to group unless umask is e.g.0022
).0640
is a repository that is group-readable but not group-writable. See git-init(1). False by default.
这篇关于致命:在./config中为'core.sharedrepository'配置错误值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!