* How to create a branch without any links to the others branches
@ 2008-08-29 8:27 Francis Moreau
2008-08-29 9:27 ` Alex Riesen
0 siblings, 1 reply; 9+ messages in thread
From: Francis Moreau @ 2008-08-29 8:27 UTC (permalink / raw)
To: git
Hello,
I'm wondering how such branches are created in a repository.
For example, how todo, man and html branches from the git repository
have been created ?
Looking at git-branch man, a "start-point:" must be specified if not the
current branch is assumed.
The only solution I'm seeing is to create a new repository with these
'unrelated' branches and pull them from the other repository.
Is this correct ?
Thanks
--
Francis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to create a branch without any links to the others branches
2008-08-29 8:27 How to create a branch without any links to the others branches Francis Moreau
@ 2008-08-29 9:27 ` Alex Riesen
2008-08-29 9:37 ` Francis Moreau
0 siblings, 1 reply; 9+ messages in thread
From: Alex Riesen @ 2008-08-29 9:27 UTC (permalink / raw)
To: Francis Moreau; +Cc: git
2008/8/29 Francis Moreau <francis.moro@gmail.com>:
>
> The only solution I'm seeing is to create a new repository with these
> 'unrelated' branches and pull them from the other repository.
>
> Is this correct ?
>
Almost:
$ rm .git/HEAD
$ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD
$ git commit
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to create a branch without any links to the others branches
2008-08-29 9:27 ` Alex Riesen
@ 2008-08-29 9:37 ` Francis Moreau
2008-08-29 9:46 ` Alex Riesen
2008-08-29 12:34 ` Nguyen Thai Ngoc Duy
0 siblings, 2 replies; 9+ messages in thread
From: Francis Moreau @ 2008-08-29 9:37 UTC (permalink / raw)
To: Alex Riesen; +Cc: git
On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
>
> $ rm .git/HEAD
> $ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD
> $ git commit
>
well, it looks pretty git internal hack thing to me.
Shouldn't we add a new option to git-branch to do that, like:
$ git branch --detach <new-branch>
?
--
Francis
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: How to create a branch without any links to the others branches
2008-08-29 9:37 ` Francis Moreau
@ 2008-08-29 9:46 ` Alex Riesen
2008-08-29 12:17 ` Francis Moreau
2008-08-29 12:34 ` Nguyen Thai Ngoc Duy
1 sibling, 1 reply; 9+ messages in thread
From: Alex Riesen @ 2008-08-29 9:46 UTC (permalink / raw)
To: Francis Moreau; +Cc: git
2008/8/29 Francis Moreau <francis.moro@gmail.com>:
> On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
>>
>> $ rm .git/HEAD
>> $ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD
>> $ git commit
>>
>
> well, it looks pretty git internal hack thing to me.
>
> Shouldn't we add a new option to git-branch to do that, like:
>
> $ git branch --detach <new-branch>
>
Dunno. I never needed that explicitly. What do you want to do with it?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to create a branch without any links to the others branches
2008-08-29 9:46 ` Alex Riesen
@ 2008-08-29 12:17 ` Francis Moreau
2008-08-29 15:04 ` Junio C Hamano
0 siblings, 1 reply; 9+ messages in thread
From: Francis Moreau @ 2008-08-29 12:17 UTC (permalink / raw)
To: Alex Riesen; +Cc: git
On Fri, Aug 29, 2008 at 11:46 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
>
> Dunno. I never needed that explicitly. What do you want to do with it?
>
I'd like to create branches as Junio did for html, man and todo ones.
Thanks
--
Francis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to create a branch without any links to the others branches
2008-08-29 12:17 ` Francis Moreau
@ 2008-08-29 15:04 ` Junio C Hamano
2008-08-29 19:18 ` Francis Moreau
0 siblings, 1 reply; 9+ messages in thread
From: Junio C Hamano @ 2008-08-29 15:04 UTC (permalink / raw)
To: Francis Moreau; +Cc: Alex Riesen, git
"Francis Moreau" <francis.moro@gmail.com> writes:
> On Fri, Aug 29, 2008 at 11:46 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
>>
>> Dunno. I never needed that explicitly. What do you want to do with it?
>>
>
> I'd like to create branches as Junio did for html, man and todo ones.
If that is the objective...
There is no reason whatsoever for these unrelated branches to _ORIGINATE_
from the same source repository. The repositories you see at kernel.org
and repo.or.cz are merely public distribution points, and I push them into
a single repository at each of these places merely for downloaders
convenience, from separate repositories.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to create a branch without any links to the others branches
2008-08-29 15:04 ` Junio C Hamano
@ 2008-08-29 19:18 ` Francis Moreau
0 siblings, 0 replies; 9+ messages in thread
From: Francis Moreau @ 2008-08-29 19:18 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Alex Riesen, git
On Fri, Aug 29, 2008 at 5:04 PM, Junio C Hamano <gitster@pobox.com> wrote:
> If that is the objective...
>
> There is no reason whatsoever for these unrelated branches to _ORIGINATE_
> from the same source repository.
Well I find sometimes convenient to embed some temporary working files
and the project files at the same place.
> The repositories you see at kernel.org
> and repo.or.cz are merely public distribution points, and I push them into
> a single repository at each of these places merely for downloaders
> convenience, from separate repositories.
OK.
thanks
--
Francis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to create a branch without any links to the others branches
2008-08-29 9:37 ` Francis Moreau
2008-08-29 9:46 ` Alex Riesen
@ 2008-08-29 12:34 ` Nguyen Thai Ngoc Duy
2008-08-29 12:51 ` Francis Moreau
1 sibling, 1 reply; 9+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2008-08-29 12:34 UTC (permalink / raw)
To: Francis Moreau; +Cc: Alex Riesen, git
On 8/29/08, Francis Moreau <francis.moro@gmail.com> wrote:
> On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
> >
> > $ rm .git/HEAD
> > $ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD
> > $ git commit
> >
>
>
> well, it looks pretty git internal hack thing to me.
There is an old thread that uses "git symbolic-ref" or something
instead of "echo...", it would look less hacky. Or you could create a
new repository, make a new branch there, then pull that branch to your
repository.
--
Duy
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to create a branch without any links to the others branches
2008-08-29 12:34 ` Nguyen Thai Ngoc Duy
@ 2008-08-29 12:51 ` Francis Moreau
0 siblings, 0 replies; 9+ messages in thread
From: Francis Moreau @ 2008-08-29 12:51 UTC (permalink / raw)
To: Nguyen Thai Ngoc Duy; +Cc: Alex Riesen, git
On Fri, Aug 29, 2008 at 2:34 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
> There is an old thread that uses "git symbolic-ref" or something
> instead of "echo...", it would look less hacky.
OK.
> Or you could create a new repository, make a new branch there,
> then pull that branch to your repository.
yes it's the only soultion I could come up with but I would have assumed
git-branch to be able to do that.
Thanks
--
Francis
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-08-29 19:19 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-29 8:27 How to create a branch without any links to the others branches Francis Moreau
2008-08-29 9:27 ` Alex Riesen
2008-08-29 9:37 ` Francis Moreau
2008-08-29 9:46 ` Alex Riesen
2008-08-29 12:17 ` Francis Moreau
2008-08-29 15:04 ` Junio C Hamano
2008-08-29 19:18 ` Francis Moreau
2008-08-29 12:34 ` Nguyen Thai Ngoc Duy
2008-08-29 12:51 ` Francis Moreau
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.