{"thread":{"id":"22822","subject":"few questions from a git newbie","startedAt":"2010-02-25T19:26:34Z","lastAt":"2010-02-25T20:35:38Z","messageCount":2,"participants":["Levente Kovacs","Christian MICHON"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"135688","messageId":"20100225202634.6a687a6c@gmail.com","threadId":"22822","inReplyTo":null,"subject":"few questions from a git newbie","fromName":"Levente Kovacs","fromEmail":"leventelist@gmail.com","sentAt":"2010-02-25T19:26:34Z","receivedAt":"2010-02-25T19:26:34Z","isPatch":false,"sender":{"key":"leventelist@gmail.com","avatar":null},"body":"Hi,\n\n\nI am a git newbie, so forgive my ignorance.\n\nI've set up a working system with gitosis.\n\nhttp://logonex.eu/git/\n\nCurrently I can add a repository by doing the following\nstuff:\n\nedit gitosis.conf\n\nssh git@server\nmkdir REPO.git\ncd REPO.git\ngit --bare init\nexit\n\ngit clone git@server:REPO.git\ncd REPO\ngit remote add REPO git@server:REPO.git\ntouch .gitignore\ngit add .gitignore\ngit commit -a\ngit push origin master\n\nIs this flow is the \"right way\"? How can I add a repository without ssh'ing to\nthe server?\n\nNext question is about SVN.\n\nI was using SVN, and now I am migrating from SVN to git. I could import\neverything to a new repository. However, I want to reorganize my stuff, and\nbreak it to several repositories. Can I move directories to other\nrepositories? Or can I partially import a directory from SVN to another\ndirectory in a git repository?\n\nHow can I make gitosis to hide certain repositories?\n\nThank you very much for your answers.\n\nLevente\n\n-- \nLevente Kovacs\nhttp://logonex.eu\n"},{"id":"135694","messageId":"46d6db661002251235w2be39d11l5faa69a2bfddf653@mail.gmail.com","threadId":"22822","inReplyTo":"20100225202634.6a687a6c@gmail.com","subject":"Re: few questions from a git newbie","fromName":"Christian MICHON","fromEmail":"christian.michon@gmail.com","sentAt":"2010-02-25T20:35:38Z","receivedAt":"2010-02-25T20:35:38Z","isPatch":false,"sender":{"key":"christian.michon@gmail.com","avatar":"https://gravatar.com/avatar/8a7c327b21187fbcab5c27640a49450eec72e0355dc292501197f27a5a744ec4?d=mp&s=160"},"body":"On Thu, Feb 25, 2010 at 8:26 PM, Levente Kovacs <leventelist@gmail.com> wrote:\n> Hi,\n>\n>\n> I am a git newbie, so forgive my ignorance.\n\nWe all started as padawans. :-)\n\n> I've set up a working system with gitosis.\n\nGitosis has no commits since mid September 2009. I would suggest to\nmove to gitolite with a very easy setups, especially for newbies. I'll\nactually answer more on the rest of your questions as if you would be\nusing gitolite and not gitosis.\n\n>\n> http://logonex.eu/git/\n>\n> Currently I can add a repository by doing the following\n> stuff:\n>\n> edit gitosis.conf\n>\n> ssh git@server\n> mkdir REPO.git\n> cd REPO.git\n> git --bare init\n> exit\n\nWith gitolite, you clone the gitolite-admin on a remote machine, as\nthe user who has the admins ssh keys. Under the hood, you still\nsomehow do ssh, but with gitolite, all it takes is to edit\ngitolite.conf, push your changes and the bare repo gets automatically\ncreated on the server.\n\n>\n> git clone git@server:REPO.git\n> cd REPO\n> git remote add REPO git@server:REPO.git\n> touch .gitignore\n> git add .gitignore\n> git commit -a\n> git push origin master\n>\n> Is this flow is the \"right way\"? How can I add a repository without ssh'ing to\n> the server?\n\nIf you cloned it, you should not need to add remotes. If you're a\nnewbie, I would suggest to use 'git gui' and 'gitk' until you're fully\nfamiliar with the command line.\n\n>\n> Next question is about SVN.\n>\n\nI'll pass the rest of the email. Never got brainw@shed by SVN...\n\n> How can I make gitosis to hide certain repositories?\n\nYou meant on your gitweb ? The first thing you need to do is actually\nto secure your gitweb access. Back again to gitolite, a 'ssh gitolite\ninfo' will actually tell you the repos you've access on only. So all\nthe rest of repos are hidden somehow. Keep in mind to remove gitweb if\nyou need hidden stuff.\n\nGood luck.\n\n-- \nChristian\n--\nhttp://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !\n"}]}