0

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

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

你能给我解释一下吗?

4

1 回答 1

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).

你究竟在疑惑什么?

于 2012-12-03T08:06:38.813 回答