在Git中创建远程仓库的不同命令

时间:2012-12-03 08:02:21

标签: git git-remote

Git(VCS工具)中这些命令之间有什么区别:

$ git init --bare
$ git init --bare --shared
$ git init --bare --shared=group

请你解释一下吗?

1 个答案:

答案 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).
你真正感到困惑的是什么?