{"thread":{"id":"15273","subject":"How to create a branch without any links to the others branches","startedAt":"2008-08-29T08:27:37Z","lastAt":"2008-08-29T19:18:29Z","messageCount":9,"participants":["Francis Moreau","Alex Riesen","Nguyen Thai Ngoc Duy","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"89103","messageId":"38b2ab8a0808290127o32621d09vac07e7811e6e8139@mail.gmail.com","threadId":"15273","inReplyTo":null,"subject":"How to create a branch without any links to the others branches","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2008-08-29T08:27:37Z","receivedAt":"2008-08-29T08:27:37Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"Hello,\n\nI'm wondering how such branches are created in a repository.\n\nFor example, how todo, man and html branches from the git repository\nhave been created ?\n\nLooking at git-branch man, a \"start-point:\" must be specified if not the\ncurrent branch is assumed.\n\nThe only solution I'm seeing is to create a new repository with these\n'unrelated' branches and pull them from the other repository.\n\nIs this correct ?\n\nThanks\n-- \nFrancis\n"},{"id":"89107","messageId":"81b0412b0808290227g328b793cl58a606e718b4b3ff@mail.gmail.com","threadId":"15273","inReplyTo":"38b2ab8a0808290127o32621d09vac07e7811e6e8139@mail.gmail.com","subject":"Re: How to create a branch without any links to the others branches","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2008-08-29T09:27:02Z","receivedAt":"2008-08-29T09:27:02Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"2008/8/29 Francis Moreau <francis.moro@gmail.com>:\n>\n> The only solution I'm seeing is to create a new repository with these\n> 'unrelated' branches and pull them from the other repository.\n>\n> Is this correct ?\n>\n\nAlmost:\n\n$ rm .git/HEAD\n$ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD\n$ git commit\n"},{"id":"89111","messageId":"38b2ab8a0808290237l703b0394rad8f42c091d7143f@mail.gmail.com","threadId":"15273","inReplyTo":"81b0412b0808290227g328b793cl58a606e718b4b3ff@mail.gmail.com","subject":"Re: How to create a branch without any links to the others branches","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2008-08-29T09:37:08Z","receivedAt":"2008-08-29T09:37:08Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen <raa.lkml@gmail.com> wrote:\n>\n> $ rm .git/HEAD\n> $ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD\n> $ git commit\n>\n\nwell, it looks pretty git internal hack thing to me.\n\nShouldn't we add a new option to git-branch to do that, like:\n\n    $ git branch --detach <new-branch>\n\n?\n-- \nFrancis\n"},{"id":"89112","messageId":"81b0412b0808290246j299371b0k7895308368266a01@mail.gmail.com","threadId":"15273","inReplyTo":"38b2ab8a0808290237l703b0394rad8f42c091d7143f@mail.gmail.com","subject":"Re: How to create a branch without any links to the others branches","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2008-08-29T09:46:25Z","receivedAt":"2008-08-29T09:46:25Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"2008/8/29 Francis Moreau <francis.moro@gmail.com>:\n> On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen <raa.lkml@gmail.com> wrote:\n>>\n>> $ rm .git/HEAD\n>> $ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD\n>> $ git commit\n>>\n>\n> well, it looks pretty git internal hack thing to me.\n>\n> Shouldn't we add a new option to git-branch to do that, like:\n>\n>    $ git branch --detach <new-branch>\n>\n\nDunno. I never needed that explicitly. What do you want to do with it?\n"},{"id":"89127","messageId":"38b2ab8a0808290517l75296521rf99f724cb1594f69@mail.gmail.com","threadId":"15273","inReplyTo":"81b0412b0808290246j299371b0k7895308368266a01@mail.gmail.com","subject":"Re: How to create a branch without any links to the others branches","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2008-08-29T12:17:36Z","receivedAt":"2008-08-29T12:17:36Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"On Fri, Aug 29, 2008 at 11:46 AM, Alex Riesen <raa.lkml@gmail.com> wrote:\n>\n> Dunno. I never needed that explicitly. What do you want to do with it?\n>\n\nI'd like to create branches as Junio did for html, man and todo ones.\n\nThanks\n-- \nFrancis\n"},{"id":"89128","messageId":"fcaeb9bf0808290534w5025b436s1087bb6a0ffcb16f@mail.gmail.com","threadId":"15273","inReplyTo":"38b2ab8a0808290237l703b0394rad8f42c091d7143f@mail.gmail.com","subject":"Re: How to create a branch without any links to the others branches","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2008-08-29T12:34:53Z","receivedAt":"2008-08-29T12:34:53Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On 8/29/08, Francis Moreau <francis.moro@gmail.com> wrote:\n> On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen <raa.lkml@gmail.com> wrote:\n>  >\n>  > $ rm .git/HEAD\n>  > $ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD\n>  > $ git commit\n>  >\n>\n>\n> well, it looks pretty git internal hack thing to me.\n\nThere is an old thread that uses \"git symbolic-ref\" or something\ninstead of \"echo...\", it would look less hacky. Or you could create a\nnew repository, make a new branch there, then pull that branch to your\nrepository.\n-- \nDuy\n"},{"id":"89129","messageId":"38b2ab8a0808290551i3e2c608ax88e09368582bfd99@mail.gmail.com","threadId":"15273","inReplyTo":"fcaeb9bf0808290534w5025b436s1087bb6a0ffcb16f@mail.gmail.com","subject":"Re: How to create a branch without any links to the others branches","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2008-08-29T12:51:51Z","receivedAt":"2008-08-29T12:51:51Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"On Fri, Aug 29, 2008 at 2:34 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:\n> There is an old thread that uses \"git symbolic-ref\" or something\n> instead of \"echo...\", it would look less hacky.\n\nOK.\n\n> Or you could create a new repository, make a new branch there,\n> then pull that branch to your repository.\n\nyes it's the only soultion I could come up with but I would have assumed\ngit-branch to be able to do that.\n\nThanks\n-- \nFrancis\n"},{"id":"89136","messageId":"7v4p536exq.fsf@gitster.siamese.dyndns.org","threadId":"15273","inReplyTo":"38b2ab8a0808290517l75296521rf99f724cb1594f69@mail.gmail.com","subject":"Re: How to create a branch without any links to the others branches","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-08-29T15:04:01Z","receivedAt":"2008-08-29T15:04:01Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Francis Moreau\" <francis.moro@gmail.com> writes:\n\n> On Fri, Aug 29, 2008 at 11:46 AM, Alex Riesen <raa.lkml@gmail.com> wrote:\n>>\n>> Dunno. I never needed that explicitly. What do you want to do with it?\n>>\n>\n> I'd like to create branches as Junio did for html, man and todo ones.\n\nIf that is the objective...\n\nThere is no reason whatsoever for these unrelated branches to _ORIGINATE_\nfrom the same source repository.  The repositories you see at kernel.org\nand repo.or.cz are merely public distribution points, and I push them into\na single repository at each of these places merely for downloaders\nconvenience, from separate repositories.\n"},{"id":"89148","messageId":"38b2ab8a0808291218t60be4d04u6c429f7b6c8e3f19@mail.gmail.com","threadId":"15273","inReplyTo":"7v4p536exq.fsf@gitster.siamese.dyndns.org","subject":"Re: How to create a branch without any links to the others branches","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2008-08-29T19:18:29Z","receivedAt":"2008-08-29T19:18:29Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"On Fri, Aug 29, 2008 at 5:04 PM, Junio C Hamano <gitster@pobox.com> wrote:\n> If that is the objective...\n>\n> There is no reason whatsoever for these unrelated branches to _ORIGINATE_\n> from the same source repository.\n\nWell I find sometimes convenient to embed some temporary working files\nand the project files at the same place.\n\n>  The repositories you see at kernel.org\n> and repo.or.cz are merely public distribution points, and I push them into\n> a single repository at each of these places merely for downloaders\n> convenience, from separate repositories.\n\nOK.\n\nthanks\n-- \nFrancis\n"}]}