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

Re: Newbie Query

From
NMNicolas Morey-Chaisemartin <devel@morey-chaisemartin.com>
Date
Jan 20, 2009, 21:07 UTC
Message-ID
<49763D2B.1000607@morey-chaisemartin.com>
In-Reply-To
<3f4fd2640901201217x22262655w115cc2a25e32865e@mail.gmail.com>
Reece Dunn a écrit :
Show 12 quoted lines
>
> If you are committing the files to a shared public repository (e.g. a
> central repository, or build server repository), a pussible approach
> is to create that as a "bare" repository (one with just the contents
> of the .git folder - i.e. it does not have any files checked out). You
> can do this by running:
>     git clone --bare source/git/path/project project.git
> you can then clone from this:
>     git clone my/shared/project.git
> and push any changes to it as normal.
>
>   
Hi,

I did the rookie mistkae on the central server to create the main reposity in non-bare mode. So i need to checkout the HEAD revision each time I push. Is there a cleaner way to convert a non-bare git repo into a bare repo than cloning it? My repo have a lot of remote branch registered, and cloning them to a new bare repo mean I'll have to add all those remote branches again (except if there is another trick here I don't know about).

Regards
Nicolas
Previous: Reece DunnNext: Boyd Stephen Smith Jr.
Message 5 of 11 in “Newbie Query”
  1. Chris WillardJan 20, 2009
  2. Tomas CarneckyJan 20, 2009
  3. Sverre RabbelierJan 20, 2009
  4. Reece DunnJan 20, 2009
  5. Nicolas Morey-ChaisemartinJan 20, 2009
  6. Boyd Stephen Smith Jr.Jan 20, 2009
  7. Nicolas Morey-ChaisemartinJan 20, 2009
  8. Boyd Stephen Smith Jr.Jan 20, 2009
  9. Jeff KingJan 20, 2009
  10. Johannes SchindelinJan 21, 2009
  11. Chris WillardJan 21, 2009

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.