git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian MICHON <christian.michon@gmail.com>
To: Levente Kovacs <leventelist@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: few questions from a git newbie
Date: Thu, 25 Feb 2010 21:35:38 +0100	[thread overview]
Message-ID: <46d6db661002251235w2be39d11l5faa69a2bfddf653@mail.gmail.com> (raw)
In-Reply-To: <20100225202634.6a687a6c@gmail.com>

On Thu, Feb 25, 2010 at 8:26 PM, Levente Kovacs <leventelist@gmail.com> wrote:
> Hi,
>
>
> I am a git newbie, so forgive my ignorance.

We all started as padawans. :-)

> I've set up a working system with gitosis.

Gitosis has no commits since mid September 2009. I would suggest to
move to gitolite with a very easy setups, especially for newbies. I'll
actually answer more on the rest of your questions as if you would be
using gitolite and not gitosis.

>
> http://logonex.eu/git/
>
> Currently I can add a repository by doing the following
> stuff:
>
> edit gitosis.conf
>
> ssh git@server
> mkdir REPO.git
> cd REPO.git
> git --bare init
> exit

With gitolite, you clone the gitolite-admin on a remote machine, as
the user who has the admins ssh keys. Under the hood, you still
somehow do ssh, but with gitolite, all it takes is to edit
gitolite.conf, push your changes and the bare repo gets automatically
created on the server.

>
> git clone git@server:REPO.git
> cd REPO
> git remote add REPO git@server:REPO.git
> touch .gitignore
> git add .gitignore
> git commit -a
> git push origin master
>
> Is this flow is the "right way"? How can I add a repository without ssh'ing to
> the server?

If you cloned it, you should not need to add remotes. If you're a
newbie, I would suggest to use 'git gui' and 'gitk' until you're fully
familiar with the command line.

>
> Next question is about SVN.
>

I'll pass the rest of the email. Never got brainw@shed by SVN...

> How can I make gitosis to hide certain repositories?

You meant on your gitweb ? The first thing you need to do is actually
to secure your gitweb access. Back again to gitolite, a 'ssh gitolite
info' will actually tell you the repos you've access on only. So all
the rest of repos are hidden somehow. Keep in mind to remove gitweb if
you need hidden stuff.

Good luck.

-- 
Christian
--
http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !

      reply	other threads:[~2010-02-25 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25 19:26 few questions from a git newbie Levente Kovacs
2010-02-25 20:35 ` Christian MICHON [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46d6db661002251235w2be39d11l5faa69a2bfddf653@mail.gmail.com \
    --to=christian.michon@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=leventelist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).