{"thread":{"id":"25819","subject":"Absolute Beginner","startedAt":"2010-11-23T12:41:05Z","lastAt":"2010-11-26T18:59:37Z","messageCount":8,"participants":["marcos","Nguyen Thai Ngoc Duy","Marcos Nogueira","Howard Miller","Ilari Liusvaara"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"156371","messageId":"1290516065002-5766449.post@n2.nabble.com","threadId":"25819","inReplyTo":null,"subject":"Absolute Beginner","fromName":"marcos","fromEmail":"marcos@arena.com.br","sentAt":"2010-11-23T12:41:05Z","receivedAt":"2010-11-23T12:41:05Z","isPatch":false,"sender":{"key":"marcos@arena.com.br","avatar":null},"body":"\nI'm an absolute beginner with Git. So far I've managed to install, understand\nand use Git locally, but am facing many difficulties on using a centralized\nrepository on a LAN local server. I've followed the instructions on many\nplaces over the web, but none has worked so far. As the development team\ngrows (we're 5 at this moment), consolidating and synchronizing the files is\nbecoming almost impossible. Any help will be much appreciated.\n\nTIA,\n\nMarcos Nogueira\nS. Paulo - Brazil\n-- \nView this message in context: http://git.661346.n2.nabble.com/Absolute-Beginner-tp5766449p5766449.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"156374","messageId":"AANLkTindQRaUMXiQ_2Fa-guKtZz5oV89Gw7W0dapO9MT@mail.gmail.com","threadId":"25819","inReplyTo":"1290516065002-5766449.post@n2.nabble.com","subject":"Re: Absolute Beginner","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2010-11-23T12:45:06Z","receivedAt":"2010-11-23T12:45:06Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Tue, Nov 23, 2010 at 7:41 PM, marcos <marcos@arena.com.br> wrote:\n>\n> I'm an absolute beginner with Git. So far I've managed to install, understand\n> and use Git locally, but am facing many difficulties on using a centralized\n> repository on a LAN local server. I've followed the instructions on many\n> places over the web, but none has worked so far. As the development team\n> grows (we're 5 at this moment), consolidating and synchronizing the files is\n> becoming almost impossible. Any help will be much appreciated.\n\nWe need to know what difficulties you have. What do you want to\nachieve? What instructions have you followed? What commands have you\ntried? Any errors from them...\n-- \nDuy\n"},{"id":"156390","messageId":"201011231216.33207.marcos@arena.com.br","threadId":"25819","inReplyTo":"AANLkTindQRaUMXiQ_2Fa-guKtZz5oV89Gw7W0dapO9MT@mail.gmail.com","subject":"Re: Absolute Beginner","fromName":"Marcos Nogueira","fromEmail":"marcos@arena.com.br","sentAt":"2010-11-23T14:16:32Z","receivedAt":"2010-11-23T14:16:32Z","isPatch":false,"sender":{"key":"marcos@arena.com.br","avatar":null},"body":"Hello Duy,\n\nThanks for your reply. Since this is my first visit to this mailing-list, I don't know its etiquette rules yet. Is this the place to get help? Can I post long messages? The whole story of setting up our Git server is quite big... :-)\n\nAnyway, follows below a list of some of the places where I've found the instructions I've mentioned:\n\nhttp://progit.org/book/ch4-0.html\nhttp://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt\nhttp://www.howtoforge.com/how-to-install-a-public-git-repository-on-a-debian-server\nhttp://batterypowered.wordpress.com/2008/07/04/deploying-a-git-repository-server-in-ubuntu/\nhttp://mattrude.com/2009/07/creating-a-secure-git-repository-server/\nhttp://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way\nhttp://www.kernel.org/pub/software/scm/git/docs/git-daemon.html\nhttp://gofedora.com/how-to-install-configure-gitweb/\n\nTrying to make it short, the last attempt to push a local project to the server produced the following results:\n\n(...)\nmarcos@hp-laptop:~/teste_sem_bare$ git status\n# On branch master\n# Your branch is ahead of 'origin/master' by 1 commit.\n#\nnothing to commit (working directory clean)\n\nmarcos@hp-laptop:~/teste_sem_bare$ ls\nteste.txt\n\nmarcos@hp-laptop:~/teste_sem_bare$ git push origin master\nCounting objects: 5, done.\nWriting objects: 100% (3/3), 293 bytes, done.\nTotal 3 (delta 0), reused 0 (delta 0)\nremote: error: refusing to update checked out branch: refs/heads/master\nremote: error: By default, updating the current branch in a non-bare repository\nremote: error: is denied, because it will make the index and work tree inconsistent\nremote: error: with what you pushed, and will require 'git reset --hard' to match\nremote: error: the work tree to HEAD.\nremote: error: \nremote: error: You can set 'receive.denyCurrentBranch' configuration variable to\nremote: error: 'ignore' or 'warn' in the remote repository to allow pushing into\nremote: error: its current branch; however, this is not recommended unless you\nremote: error: arranged to update its work tree to match what you pushed in some\nremote: error: other way.\nremote: error: \nremote: error: To squelch this message and still keep the default behaviour, set\nremote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.\nTo git@srvpkt:/home/public/teste_sem_bare\n ! [remote rejected] master -> master (branch is currently checked out)\nerror: failed to push some refs to 'git@srvpkt:/home/public/teste_sem_bare'\n\nmarcos@hp-laptop:~/teste_sem_bare$ \n(...)\n\nThanks again,\n\nMarcos\n\n> On Tue, Nov 23, 2010 at 7:41 PM, marcos <marcos@arena.com.br> wrote:\n> >\n> > I'm an absolute beginner with Git. So far I've managed to install, understand\n> > and use Git locally, but am facing many difficulties on using a centralized\n> > repository on a LAN local server. I've followed the instructions on many\n> > places over the web, but none has worked so far. As the development team\n> > grows (we're 5 at this moment), consolidating and synchronizing the files is\n> > becoming almost impossible. Any help will be much appreciated.\n> \n> We need to know what difficulties you have. What do you want to\n> achieve? What instructions have you followed? What commands have you\n> tried? Any errors from them...\n> \n"},{"id":"156392","messageId":"1290525868767-5766781.post@n2.nabble.com","threadId":"25819","inReplyTo":"AANLkTindQRaUMXiQ_2Fa-guKtZz5oV89Gw7W0dapO9MT@mail.gmail.com","subject":"Re: Absolute Beginner","fromName":"marcos","fromEmail":"marcos@arena.com.br","sentAt":"2010-11-23T15:24:28Z","receivedAt":"2010-11-23T15:24:28Z","isPatch":false,"sender":{"key":"marcos@arena.com.br","avatar":null},"body":"\nHello Duy,\n\nI've just replied by email. See below the message sent:\n\n(...)\nThanks for your reply. Since this is my first visit to this mailing-list, I\ndon't know its etiquette rules yet. Is this the place to get help? Can I\npost long messages? The whole story of setting up our Git server is quite\nbig... :-)\n\nAnyway, follows below a list of some of the places where I've found the\ninstructions I've mentioned:\n\nhttp://progit.org/book/ch4-0.html\nhttp://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt\nhttp://www.howtoforge.com/how-to-install-a-public-git-repository-on-a-debian-server\nhttp://batterypowered.wordpress.com/2008/07/04/deploying-a-git-repository-server-in-ubuntu/\nhttp://mattrude.com/2009/07/creating-a-secure-git-repository-server/\nhttp://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way\nhttp://www.kernel.org/pub/software/scm/git/docs/git-daemon.html\nhttp://gofedora.com/how-to-install-configure-gitweb/\n\nTrying to make it short, the last attempt to push a local project to the\nserver produced the following results:\n\nmarcos@hp-laptop:~/teste_sem_bare$ git status\n# On branch master\n# Your branch is ahead of 'origin/master' by 1 commit.\n#\nnothing to commit (working directory clean)\n\nmarcos@hp-laptop:~/teste_sem_bare$ ls\nteste.txt\n\nmarcos@hp-laptop:~/teste_sem_bare$ git push origin master\nCounting objects: 5, done.\nWriting objects: 100% (3/3), 293 bytes, done.\nTotal 3 (delta 0), reused 0 (delta 0)\nremote: error: refusing to update checked out branch: refs/heads/master\nremote: error: By default, updating the current branch in a non-bare\nrepository\nremote: error: is denied, because it will make the index and work tree\ninconsistent\nremote: error: with what you pushed, and will require 'git reset --hard' to\nmatch\nremote: error: the work tree to HEAD.\nremote: error: \nremote: error: You can set 'receive.denyCurrentBranch' configuration\nvariable to\nremote: error: 'ignore' or 'warn' in the remote repository to allow pushing\ninto\nremote: error: its current branch; however, this is not recommended unless\nyou\nremote: error: arranged to update its work tree to match what you pushed in\nsome\nremote: error: other way.\nremote: error: \nremote: error: To squelch this message and still keep the default behaviour,\nset\nremote: error: 'receive.denyCurrentBranch' configuration variable to\n'refuse'.\nTo git@srvpkt:/home/public/teste_sem_bare\n ! [remote rejected] master -> master (branch is currently checked out)\nerror: failed to push some refs to 'git@srvpkt:/home/public/teste_sem_bare'\n\nmarcos@hp-laptop:~/teste_sem_bare$ \n(...)\n\nThen I received a reply from Howard Miller:\n\n(...)\nYou are trying to push to a repo that isn't bare. Not impossible but\nproblematic and you can't do it at all by default (as you have found).\n\nPersonally I would look at a central shared repo. You could just get an\naccount on (something like) GitHub or setup your own (something like\nGitosis).\n(...)\n\n>From now on I'll remain here at Nabble regarding this subject.\n\nThanks again,\n\nMarcos\n\n-- \nView this message in context: http://git.661346.n2.nabble.com/Absolute-Beginner-tp5766449p5766781.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"156394","messageId":"AANLkTi=k1LhUS1Af0kGkjh_FyuAY_T1YRj4x2wpdM3NZ@mail.gmail.com","threadId":"25819","inReplyTo":"1290525868767-5766781.post@n2.nabble.com","subject":"Re: Absolute Beginner","fromName":"Howard Miller","fromEmail":"howard@e-learndesign.co.uk","sentAt":"2010-11-23T15:28:54Z","receivedAt":"2010-11-23T15:28:54Z","isPatch":false,"sender":{"key":"howard@e-learndesign.co.uk","avatar":"https://gravatar.com/avatar/ddb66c6a4a077e52b823ac5b04f33ab927cb90e2ab1eafedaeba07b1920bb99e?d=mp&s=160"},"body":"> Then I received a reply from Howard Miller:\n>\n> (...)\n\n\nSorry, I forgot to 'plain text' my reply. The list doesn't like that.\n"},{"id":"156398","messageId":"20101123155436.GA10420@LK-Perkele-V2.elisa-laajakaista.fi","threadId":"25819","inReplyTo":"1290525868767-5766781.post@n2.nabble.com","subject":"Re: Absolute Beginner","fromName":"Ilari Liusvaara","fromEmail":"ilari.liusvaara@elisanet.fi","sentAt":"2010-11-23T15:54:36Z","receivedAt":"2010-11-23T15:54:36Z","isPatch":false,"sender":{"key":"ilari.liusvaara@elisanet.fi","avatar":null},"body":"On Tue, Nov 23, 2010 at 07:24:28AM -0800, marcos wrote:\n> \n> Then I received a reply from Howard Miller:\n> \n> (...)\n> You are trying to push to a repo that isn't bare. Not impossible but\n> problematic and you can't do it at all by default (as you have found).\n> \n> Personally I would look at a central shared repo. You could just get an\n> account on (something like) GitHub or setup your own (something like\n> Gitosis).\n> (...)\n\nDon't use Gitosis, it is obsolete. Use Gitolite instead.\n\n-Ilari\n"},{"id":"156399","messageId":"AANLkTim8G+Gi5ibhLnpE0XjgsNJPP_+eR0awrOpwF2D4@mail.gmail.com","threadId":"25819","inReplyTo":"20101123155436.GA10420@LK-Perkele-V2.elisa-laajakaista.fi","subject":"Re: Absolute Beginner","fromName":"Howard Miller","fromEmail":"howard@e-learndesign.co.uk","sentAt":"2010-11-23T16:03:07Z","receivedAt":"2010-11-23T16:03:07Z","isPatch":false,"sender":{"key":"howard@e-learndesign.co.uk","avatar":"https://gravatar.com/avatar/ddb66c6a4a077e52b823ac5b04f33ab927cb90e2ab1eafedaeba07b1920bb99e?d=mp&s=160"},"body":"On 23 November 2010 15:54, Ilari Liusvaara <ilari.liusvaara@elisanet.fi> wrote:\n> On Tue, Nov 23, 2010 at 07:24:28AM -0800, marcos wrote:\n>>\n>> Then I received a reply from Howard Miller:\n>>\n>> (...)\n>> You are trying to push to a repo that isn't bare. Not impossible but\n>> problematic and you can't do it at all by default (as you have found).\n>>\n>> Personally I would look at a central shared repo. You could just get an\n>> account on (something like) GitHub or setup your own (something like\n>> Gitosis).\n>> (...)\n>\n> Don't use Gitosis, it is obsolete. Use Gitolite instead.\n>\n> -Ilari\n\nAnother job on the TODO list: \"migrate Gitosis to Gitolite\". Sigh!! :)\n"},{"id":"156690","messageId":"1290797977678-5778209.post@n2.nabble.com","threadId":"25819","inReplyTo":"AANLkTim8G+Gi5ibhLnpE0XjgsNJPP_+eR0awrOpwF2D4@mail.gmail.com","subject":"Re: Absolute Beginner","fromName":"marcos","fromEmail":"marcos@arena.com.br","sentAt":"2010-11-26T18:59:37Z","receivedAt":"2010-11-26T18:59:37Z","isPatch":false,"sender":{"key":"marcos@arena.com.br","avatar":null},"body":"\nThanks to the helpful people here and in other forums, I'm not an absolute\nbeginner anymore: a repository is running fine on our server, and the team\nis now learning how to work as a team :-)\n\nOne last request regarding this subject: based on your experience with Git,\nhow many repositories a software (web application) project usually has?\n-- \nView this message in context: http://git.661346.n2.nabble.com/Absolute-Beginner-tp5766449p5778209.html\nSent from the git mailing list archive at Nabble.com.\n"}]}