aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-23 15:27:18 -0800
committerJunio C Hamano <junkio@cox.net>2005-12-24 00:21:11 -0800
commitb74ed497350844c3c9fc77c68de3843392086e9b (patch)
treed3c12c5de0224db60047b347fd88f429e00862a3 /Documentation
parentaf6e277c5eddbcf82582b4bbd3e50b36aa61a20a (diff)
downloadgit-b74ed497350844c3c9fc77c68de3843392086e9b.tar.gz
git-b74ed497350844c3c9fc77c68de3843392086e9b.tar.xz
Tutorial: mention shared repository management.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/tutorial.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt
index 3a5c56e24..edd91cbbe 100644
--- a/Documentation/tutorial.txt
+++ b/Documentation/tutorial.txt
@@ -1695,6 +1695,24 @@ You still need to create UNIX user accounts for each developer,
and put them in the same group. Make sure that the repository
shared among these developers is writable by that group.
+. Initializing the shared repository with `git-init-db --shared`
+helps somewhat.
+
+. Run the following in the shared repository:
++
+------------
+$ chgrp -R $group repo.git
+$ find repo.git -type d -print | xargs chmod ug+rwx,g+s
+$ GIT_DIR=repo.git git repo-config core.sharedrepository true
+------------
+
+The above measures make sure that directories lazily created in
+`$GIT_DIR` are writable by group members. You, as the
+repository administrator, are still responsible to make sure
+your developers belong to that shared repository group and set
+their umask to a value no stricter than 027 (i.e. at least allow
+reading and searching by group members).
+
You can implement finer grained branch policies using update
hooks. There is a document ("control access to branches") in
Documentation/howto by Carl Baldwin and JC outlining how to (1)