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

Re: starting completly new repository

From
sean <seanlkml@sympatico.ca>
Date
Mar 25, 2006, 21:45 UTC
Message-ID
<BAYC1-PASMTP06D0D5B809FAC3DB5EABDCAEDC0@CEZ.ICE>
In-Reply-To
<Pine.LNX.4.63.0603252148550.14361@alpha.polcom.net>

On Sat, 25 Mar 2006 22:06:42 +0100 (CET) Grzegorz Kulewski <kangur@polcom.net> wrote:

Show 11 quoted lines
> (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...
Did you actually start the git-daemon on the server?
 
> 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?

You can't commit over the git protocol, you'll need to use ssh. No need to do anything to your repo in order to push.

> Also what should I set up additionally? How can I easily set author name 
> and email for each repo? 
See below.
> What is the difference between author and commiter and how should I 
> set this up here?
Just what you might imagine, the person who created the patch and
the person who entered it into the repository respectively.
 
> Is there any documentation about git config file? Can I set author name, 
> email and preffered editor in it or must I use environment?

$ git repo-config user.email "user@email.com" $ git repo-config user.name "full name"

use the EDITOR environment variable to choose your desired editor.
> Is there some irc channel for asking dumb questions as above and having 
> them anwsered fast or should I use this mailing list?
 
#git on irc.freenode.net
Sean
Previous: Grzegorz KulewskiNext: Petr Baudis
Message 2 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.