{"thread":{"id":"3724","subject":"Re: starting completly new repository","startedAt":"2006-03-25T21:06:42Z","lastAt":"2006-03-25T21:49:31Z","messageCount":3,"participants":["sean","Petr Baudis","Grzegorz Kulewski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"294023","messageId":"Pine.LNX.4.63.0603252148550.14361@alpha.polcom.net","threadId":"3724","inReplyTo":null,"subject":"starting completly new repository","fromName":"Grzegorz Kulewski","fromEmail":"kangur@polcom.net","sentAt":"2006-03-25T21:06:42Z","receivedAt":"2006-03-25T21:06:42Z","isPatch":false,"sender":{"key":"kangur@polcom.net","avatar":null},"body":"Hi,\n\nFirst sorry if it is anwsered somewhere in the docs, but I am just \n(slowly) learning how to use git and reading the documentation. Any \npointers to some article or tutorial that anwsers my questions will be \nappreciated.\n\nWhat I am trying to do is to construct several repositories for the \nfollowing work order:\n\n1. There is some remote repo that is the main repository (call it main). \nIt lives in some server and geneerally only one or two persons can push \ninto it. All others can only pull from it.\n\n2. Everybody has his own repo derived from main and she/he can make \npatches and send it to everybody else. One person is responsible for \ntaking the patches and pushing them into main.\n\nI need this set up fast and want to know how to do it. What I tried is \nbasically:\n\n(on the server)\nmkdir main\ngit-init-db\ntouch .git/git-daemon-export-ok\n\n(on my computer)\ngit-clone git://host/main main\n\nBut it looks like I must first do some commit on the server? But I can not \nmake empty commit just to have things started? Or maybe there is some \nother way...\n\nAlso I wonder if I can do push over git protocol or I must use real ssh \naccount on the server? This is not clear from the docs... At least not for \nme. How should I set up my repo (on my computer) to be able to push \ncommits into main repo?\n\nAlso what should I set up additionally? How can I easily set author name \nand email for each repo? What is the difference between author and \ncommiter and how should I set this up here?\n\nIs there any documentation about git config file? Can I set author name, \nemail and preffered editor in it or must I use environment?\n\nIs there some irc channel for asking dumb questions as above and having \nthem anwsered fast or should I use this mailing list?\n\n\nThanks in advance,\n\nGrzegorz Kulewski\n"},{"id":"17953","messageId":"BAYC1-PASMTP06D0D5B809FAC3DB5EABDCAEDC0@CEZ.ICE","threadId":"3724","inReplyTo":"Pine.LNX.4.63.0603252148550.14361@alpha.polcom.net","subject":"Re: starting completly new repository","fromName":"sean","fromEmail":"seanlkml@sympatico.ca","sentAt":"2006-03-25T21:45:19Z","receivedAt":"2006-03-25T21:45:19Z","isPatch":false,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"On Sat, 25 Mar 2006 22:06:42 +0100 (CET)\nGrzegorz Kulewski <kangur@polcom.net> wrote:\n\n> (on the server)\n> mkdir main\n> git-init-db\n> touch .git/git-daemon-export-ok\n> \n> (on my computer)\n> git-clone git://host/main main\n> \n> But it looks like I must first do some commit on the server? But I can not \n> make empty commit just to have things started? Or maybe there is some \n> other way...\n\nDid you actually start the git-daemon on the server?\n \n> Also I wonder if I can do push over git protocol or I must use real ssh \n> account on the server? This is not clear from the docs... At least not for \n> me. How should I set up my repo (on my computer) to be able to push \n> commits into main repo?\n\nYou can't commit over the git protocol, you'll need to use ssh.  \nNo need to do anything to your repo in order to push.\n\n> Also what should I set up additionally? How can I easily set author name \n> and email for each repo? \n\nSee below.\n\n> What is the difference between author and commiter and how should I \n> set this up here?\n\nJust what you might imagine, the person who created the patch and\nthe person who entered it into the repository respectively.\n \n> Is there any documentation about git config file? Can I set author name, \n> email and preffered editor in it or must I use environment?\n\n$ git repo-config user.email \"user@email.com\"\n$ git repo-config user.name  \"full name\"\n\nuse the EDITOR environment variable to choose your desired editor.\n\n> Is there some irc channel for asking dumb questions as above and having \n> them anwsered fast or should I use this mailing list?\n \n#git on irc.freenode.net\n\nSean\n"},{"id":"17954","messageId":"20060325214931.GA18185@pasky.or.cz","threadId":"3724","inReplyTo":"Pine.LNX.4.63.0603252148550.14361@alpha.polcom.net","subject":"Re: starting completly new repository","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2006-03-25T21:49:31Z","receivedAt":"2006-03-25T21:49:31Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Hi,\n\nDear diary, on Sat, Mar 25, 2006 at 10:06:42PM CET, I got a letter\nwhere Grzegorz Kulewski <kangur@polcom.net> said that...\n> First sorry if it is anwsered somewhere in the docs, but I am just \n> (slowly) learning how to use git and reading the documentation. Any \n> pointers to some article or tutorial that anwsers my questions will be \n> appreciated.\n\nwell, there's Documentation/tutorial.txt, but it doesn't cover your\nquestions, it looks.\n\n> But it looks like I must first do some commit on the server? But I can not \n> make empty commit just to have things started? Or maybe there is some \n> other way...\n\nYou can of course make an empty commit, but it seems strange that you\nwould want that - won't the people start working on some initial version\nof the project?\n\n> Also I wonder if I can do push over git protocol or I must use real ssh \n> account on the server? This is not clear from the docs... At least not for \n> me. How should I set up my repo (on my computer) to be able to push \n> commits into main repo?\n\nYou must use real ssh account on the server. You can limit the account\nto be able to do only git pushes/pulls by setting its shell to\ngit-shell.\n\n> Also what should I set up additionally? How can I easily set author name \n> and email for each repo? What is the difference between author and \n> commiter and how should I set this up here?\n\n From Cogito's cg-commit documentation:\n\nEach commit has two user identification fields - commit author and\ncommitter.  By default, it is recorded that you authored the commit, but\nit is considered a good practice to change this to the actual author of\nthe change if you are merely applying someone else's patch. It is always\nrecorded that you were the patch committer.\n\n> Is there any documentation about git config file? Can I set author name, \n> email and preffered editor in it or must I use environment?\n\nSee git-commit-tree(1), the COMMIT INFORMATION section.\n\nOne big problem with Git documentation (other than e.g. falling\nout-of-date occassionaly) is that information is scattered between\nporcelain and plumbing or even between several commands (e.g.\ngit-whatchanged(1) which doesn't even directly mention where to gather\nthe full list of available options).\n\nThankfully, the plumbing documentation is mostly coherent. ;-)\n\n> Is there some irc channel for asking dumb questions as above and having \n> them anwsered fast or should I use this mailing list?\n\n#git on Freenode (surprisingly ;)\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nRight now I am having amnesia and deja-vu at the same time.  I think\nI have forgotten this before.\n"}]}