{"thread":{"id":"2181","subject":"[PATCH] Cogito README: add a block describing team workflow with git+ssh","startedAt":"2005-10-21T05:34:48Z","lastAt":"2005-10-21T15:14:51Z","messageCount":2,"participants":["Martin Langhoff","Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"10415","messageId":"11298728883894-git-send-email-martin@catalyst.net.nz","threadId":"2181","inReplyTo":null,"subject":"[PATCH] Cogito README: add a block describing team workflow with git+ssh","fromName":"Martin Langhoff","fromEmail":"martin@catalyst.net.nz","sentAt":"2005-10-21T05:34:48Z","receivedAt":"2005-10-21T05:34:48Z","isPatch":true,"sender":{"key":"martin@laptop.org","avatar":null},"body":"This is a resend, with a silly typo (chgroup/chgrp) fixed.\n\n---\n\nThe README doesn't talk about teams with \"peer\" access to a shared repo.\nIt took me a while to figure our the /right/ way to do it. Document for\nfuture generations and general happiness.\n\n---\n\n README |   35 +++++++++++++++++++++++++++++++++++\n 1 files changed, 35 insertions(+), 0 deletions(-)\n\napplies-to: 06a96ef8bc54639d5e42319c86cac2d812327cf0\n1217193450bf9ae108af2341f1383eb496d31b62\ndiff --git a/README b/README\nindex 70908bc..fb87adb 100644\n--- a/README\n+++ b/README\n@@ -268,6 +268,41 @@ Note that we gave only a glimpse to the \n - merging (`cg-merge`), moving your tree to an older commit (`cg-seek`),\n pushing (`cg-push`), etc.\n \n+Using Cogito for Team Work\n+--------------------------\n+\n+A small team with SSH access to a shared server can use Cogito in a way \n+similar to traditional CVS over SSH. \n+\n+If you are bootstrapping the project, and you have a local Cogito working copy,\n+you must set up the shared repository and push a local head to it.\n+\n+To set up the shared repository, for example in \n+remoteserver:/var/git, login to the remote server and do\n+\n+        $ umask  002\n+        $ mkdir /var/git\n+        $ chgrp gitcommit /var/git\n+        $ chmod  2775 /var/git\n+        $ mkdir -p /var/git/projectname.git\n+        $ GIT_DIR=/var/git/projectname.git git-init-db\n+        \n+Note: All the developers with \"commit\" access must belong to the gitcommit\n+group and have a 002 umask on the remote server.\n+\n+Going back to your Cogito working copy, run \n+\n+        $ git-push  remoteserver:/var/git/projectname.git master branchname\n+\n+Now your other teammembers can start working with you, doing\n+\n+         $ cg-clone git+ssh://remoteserver/var/git/project.git#branchname localdir\n+\n+And when they are ready to push their work onto the shared repository, just do\n+\n+         $ cg-update\n+         $ cg-push\n+\n \n Understanding GIT branching and merging\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n---\n0.99.8.GIT\n"},{"id":"10426","messageId":"20051021151451.GH30889@pasky.or.cz","threadId":"2181","inReplyTo":"11298728883894-git-send-email-martin@catalyst.net.nz","subject":"Re: [PATCH] Cogito README: add a block describing team workflow with git+ssh","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-10-21T15:14:51Z","receivedAt":"2005-10-21T15:14:51Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Fri, Oct 21, 2005 at 07:34:48AM CEST, I got a letter\nwhere Martin Langhoff <martin@catalyst.net.nz> told me that...\n> This is a resend, with a silly typo (chgroup/chgrp) fixed.\n\nIt was missing the signoff, but I worked that around by taking your\noriginal patch from the end of September. ;-)\n\n> The README doesn't talk about teams with \"peer\" access to a shared repo.\n> It took me a while to figure our the /right/ way to do it. Document for\n> future generations and general happiness.\n\nThanks. The long sequence of permissions setup inspired me to adding\ncg-admin-setuprepo which automates that. I also changed the git-push\nto cg-push. Please review the final result.\n\nThanks,\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nVI has two modes: the one in which it beeps and the one in which\nit doesn't.\n"}]}