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

How to create empty CENTRAL git with master / development branch ?

From
JBJ. Bakshi <joydeep.bakshi@infoservices.in>
Date
Apr 3, 2012, 10:53 UTC
Message-ID
<20120403162352.67cb165e@shiva.selfip.org>
Dear list,

I need to create git repos on a remote server by the command executed on that server through ssh as

` ` ` ` ` git --bare init project_name.git

` ` ` ` `

How can I also add the master branch, so that users don't need to execute [ git push origin master ] ?

Thanks
Next: Holger Hellmuth
Message 1 of 7 in “How to create empty CENTRAL git with master / development branch ?”
  1. J. BakshiApr 3, 2012
  2. Holger HellmuthApr 3, 2012
  3. Tomas CarneckyApr 3, 2012
  4. J. BakshiApr 4, 2012
  5. Junio C HamanoApr 4, 2012
  6. Holger HellmuthApr 4, 2012
  7. Holger HellmuthApr 4, 2012

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.