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

Re: starting completly new repository

From
Petr Baudis <pasky@suse.cz>
Date
Mar 25, 2006, 21:49 UTC
Message-ID
<20060325214931.GA18185@pasky.or.cz>
In-Reply-To
<Pine.LNX.4.63.0603252148550.14361@alpha.polcom.net>
Hi,

Dear diary, on Sat, Mar 25, 2006 at 10:06:42PM CET, I got a letter where Grzegorz Kulewski <kangur@polcom.net> said that...

> 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.

well, there's Documentation/tutorial.txt, but it doesn't cover your questions, it looks.

> 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...

You can of course make an empty commit, but it seems strange that you would want that - won't the people start working on some initial version of the project?

> 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 must use real ssh account on the server. You can limit the account to be able to do only git pushes/pulls by setting its shell to git-shell.

> 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?
 From Cogito's cg-commit documentation:

Each commit has two user identification fields - commit author and committer. By default, it is recorded that you authored the commit, but it is considered a good practice to change this to the actual author of the change if you are merely applying someone else's patch. It is always recorded that you were the patch committer.

> Is there any documentation about git config file? Can I set author name, 
> email and preffered editor in it or must I use environment?
See git-commit-tree(1), the COMMIT INFORMATION section.

One big problem with Git documentation (other than e.g. falling out-of-date occassionaly) is that information is scattered between porcelain and plumbing or even between several commands (e.g. git-whatchanged(1) which doesn't even directly mention where to gather the full list of available options).

Thankfully, the plumbing documentation is mostly coherent. ;-)
> 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 Freenode (surprisingly ;)
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Right now I am having amnesia and deja-vu at the same time.  I think
I have forgotten this before.
Previous: sean
Message 3 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.