Git(VCS工具)中这些命令之间有什么区别:
$ git init --bare
$ git init --bare --shared
$ git init --bare --shared=group
请你解释一下吗?
答案 0 :(得分:1)
从手册页:
--shared[=(false|true|umask|group|all|world|everybody|0xxx)]
Specify that the git repository is to be shared amongst several users. This allows users belonging to the same group to push into that repository. When
specified, the config variable "core.sharedRepository" is set so that files and directories under $GIT_DIR are created with the requested permissions. When
not specified, git will use permissions reported by umask(2).
你真正感到困惑的是什么?