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

starting completly new repository

From
GKGrzegorz Kulewski <kangur@polcom.net>
Date
Mar 25, 2006, 21:06 UTC
Message-ID
<Pine.LNX.4.63.0603252148550.14361@alpha.polcom.net>
Hi,

First sorry if it is anwsered somewhere in the docs, but I am just (slowly) learning how to use git and reading the documentation. Any pointers to some article or tutorial that anwsers my questions will be appreciated.

What I am trying to do is to construct several repositories for the following work order:

1. There is some remote repo that is the main repository (call it main). 
It lives in some server and geneerally only one or two persons can push 
into it. All others can only pull from it.
2. Everybody has his own repo derived from main and she/he can make 
patches and send it to everybody else. One person is responsible for 
taking the patches and pushing them into main.

I need this set up fast and want to know how to do it. What I tried is basically:

(on the server) mkdir main git-init-db touch .git/git-daemon-export-ok

(on my computer) git-clone git://host/main main

But it looks like I must first do some commit on the server? But I can not make empty commit just to have things started? Or maybe there is some other way...

Also I wonder if I can do push over git protocol or I must use real ssh account on the server? This is not clear from the docs... At least not for me. How should I set up my repo (on my computer) to be able to push commits into main repo?

Also what should I set up additionally? How can I easily set author name and email for each repo? What is the difference between author and commiter and how should I set this up here?

Is there any documentation about git config file? Can I set author name, email and preffered editor in it or must I use environment?

Is there some irc channel for asking dumb questions as above and having them anwsered fast or should I use this mailing list?

Thanks in advance,
Grzegorz Kulewski
Next: sean
Message 1 of 3 in “starting completly new repository”
  1. Grzegorz KulewskiMar 25, 2006
  2. seanMar 25, 2006
  3. Petr BaudisMar 25, 2006

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.