Re: Parent-less branches
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 2, 2008, 21:47 UTC
- Message-ID
- <7vskx0wf8i.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <F26CE1A6-FE85-4AC6-BCE6-B41085A09F0F@simplicidade.org>
Pedro Melo <melo@simplicidade.org> writes:
> inside an existing repository I want to create a new branch without a > parent commit. Is there a set of commands to do this?
Typically these commits come about because you created a completely separate history elsewhere in a separate repository and fetched and/or pulled from there.
So "a set of commands to do this" would be:
go away
git init
build history as usual
come back
git fetch ..from that other repository..