{"thread":{"id":"20271","subject":"How to host a github?","startedAt":"2009-07-29T06:25:29Z","lastAt":"2009-09-19T21:01:47Z","messageCount":4,"participants":["jvsrvcs","Alex Riesen","Jakub Narebski","daicoden"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"119017","messageId":"24713161.post@talk.nabble.com","threadId":"20271","inReplyTo":null,"subject":"How to host a github?","fromName":"jvsrvcs","fromEmail":"jvsrvcs@gmail.com","sentAt":"2009-07-29T06:25:29Z","receivedAt":"2009-07-29T06:25:29Z","isPatch":false,"sender":{"key":"jvsrvcs@gmail.com","avatar":null},"body":"\nI want to share code with a few co-workers and I want to use git.\n\nI installed git (cygwin), created a /project/ and then $cd project\nand then $git init\n\nI have found so much documentation as to what to do next, that\nI'm confused.\n\nDo I have to create an account on github in order to share code with\na few local developers?\n\nCould I run some sort of server on my laptop in order to share code?\n(we only need to share during office hours).  Basically I just\nwant to share code but do not want to sign up for an account\non github.\n\nHow do I work this?\n\nthanks\n\njvsrvcs\n-- \nView this message in context: http://www.nabble.com/How-to-host-a-github--tp24713161p24713161.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"119026","messageId":"81b0412b0907290059j7ff346efu7fea3dbaef65e5eb@mail.gmail.com","threadId":"20271","inReplyTo":"24713161.post@talk.nabble.com","subject":"Re: How to host a github?","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2009-07-29T07:59:30Z","receivedAt":"2009-07-29T07:59:30Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"On Wed, Jul 29, 2009 at 08:25, jvsrvcs<jvsrvcs@gmail.com> wrote:\n>\n> I want to share code with a few co-workers and I want to use git.\n>\n> I installed git (cygwin), created a /project/ and then $cd project\n> and then $git init\n\nSee also \"git add\" and \"git commit\" in the tutorials below.\n\n> I have found so much documentation as to what to do next, that\n> I'm confused.\n\nStart here: http://www.git-scm.com/documentation (\"Tutorials\" section).\nThe recently published http://progit.org/book/ can be also recommended.\n\n> Do I have to create an account on github in order to share code with\n> a few local developers?\n\nNo.\n\n> Could I run some sort of server on my laptop in order to share code?\n\nYes. You don't have to, though.\n\n> (we only need to share during office hours).  Basically I just\n> want to share code but do not want to sign up for an account\n> on github.\n\nLook for fetch, push, and patches in the tutorials.\n\n> How do I work this?\n\nPatiently.\n"},{"id":"119046","messageId":"m3bpn33kfe.fsf@localhost.localdomain","threadId":"20271","inReplyTo":"24713161.post@talk.nabble.com","subject":"Re: How to host a github?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2009-07-29T09:31:07Z","receivedAt":"2009-07-29T09:31:07Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"jvsrvcs <jvsrvcs@gmail.com> writes:\n\n> I want to share code with a few co-workers and I want to use git.\n> \n> I installed git (cygwin), created a /project/ and then $cd project\n> and then $ git init\n> \n> I have found so much documentation as to what to do next, that\n> I'm confused.\n\nRead \"Git User's Manual\" (should be distributed with Git), check out\n\"Git Community Book\" (http://book.git-scm.com).\n\nMore links at:\n  http://git.or.cz/gitwiki/GitDocumentation\n  http://git-scm.com/documentation\n\nSome links here might also help:\n  http://git.or.cz/gitwiki/BlogPosts\n\n> \n> Do I have to create an account on github in order to share code with\n> a few local developers?\n\nNo, you don't have to do that.\n \n> Could I run some sort of server on my laptop in order to share code?\n> (we only need to share during office hours).  Basically I just\n> want to share code but do not want to sign up for an account\n> on github.\n> \n> How do I work this?\n\nReferences about hosting git repositories, etc.:\n* http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#sharing-development\n  \"Git User's Manual\", Chapter 4. Sharing development with others\n* http://book.git-scm.com/4_setting_up_a_public_repository.html\n  http://book.git-scm.com/4_setting_up_a_private_repository.html\n  \"Git Community Book\", Setting up Public/Private Repository\n* My answers to similar questions at StackOverflow:\n  http://stackoverflow.com/questions/978052/githow-can-i-make-my-local-repository-available-for-git-pull/978417#978417\n  http://stackoverflow.com/questions/1173101/do-i-need-a-server-to-use-git/1173623#1173623\n\nReferences about Git on Windows:\n  http://www.lostechies.com/blogs/jason_meridth/archive/2009/06/01/git-for-windows-developers-git-series-part-1.aspx\n  http://gitster.livejournal.com/24080.html (msysGit, not Cygwin)\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"123520","messageId":"25525401.post@talk.nabble.com","threadId":"20271","inReplyTo":"24713161.post@talk.nabble.com","subject":"Re: How to host a github?","fromName":"daicoden","fromEmail":"daicoden@copypastel.com","sentAt":"2009-09-19T21:01:47Z","receivedAt":"2009-09-19T21:01:47Z","isPatch":false,"sender":{"key":"daicoden@copypastel.com","avatar":null},"body":"\n\n\njvsrvcs wrote:\n> \n> I want to share code with a few co-workers and I want to use git.\n> \n> I installed git (cygwin), created a /project/ and then $cd project\n> and then $git init\n> \n> I have found so much documentation as to what to do next, that\n> I'm confused.\n> \n> Do I have to create an account on github in order to share code with\n> a few local developers?\n> \n> Could I run some sort of server on my laptop in order to share code?\n> (we only need to share during office hours).  Basically I just\n> want to share code but do not want to sign up for an account\n> on github.\n> \n> How do I work this?\n> \n> thanks\n> \n> jvsrvcs\n> \n\nHey,  assuming you have shell access into your laptop, create a user named\ngit.  You don't have to do this but you want to give everyone access to an\naccount on the laptop.  You could also create a usergroup and add the\nproject folder to that group and give all your developers access to that\ngroup.\n\nEither-way once everyone is able to log onto the laptop make a new directory\ncalled project.git.  Then go into that directory and use git --bare init.\n\nAssuming you created a user named git you can then check the code out via\n\ngit clone git@localhost:project.git\n\nto start things off from the source you will be working on you can then use:\n\ngit init\ntouch 'Readme'\ngit add Readme\ngit commit -m 'Initial Comit'\ngit remote add origin git@ip:project.git\ngit push origin master\n\n-- \nView this message in context: http://www.nabble.com/How-to-host-a-github--tp24713161p25525401.html\nSent from the git mailing list archive at Nabble.com.\n"}]}