Re: Newbie Query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reece Dunn a écrit :
>
> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux