git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: few questions from a git newbie

From
Christian MICHON <christian.michon@gmail.com>
Date
Feb 25, 2010, 20:35 UTC
Message-ID
<46d6db661002251235w2be39d11l5faa69a2bfddf653@mail.gmail.com>
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.

Show 13 quoted lines
>
> 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.

Show 11 quoted lines
>
> 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 !
Previous: Levente Kovacs
Message 2 of 2 in “few questions from a git newbie”
  1. Levente KovacsFeb 25, 2010
  2. Christian MICHONFeb 25, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.