From: Francis Moreau <hidden> Date: 2016-06-15 22:45:15
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
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
On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen [off-list ref] 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