Re: Parent-less branches

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

 



Hi,

On May 2, 2008, at 10:47 PM, Junio C Hamano wrote:

Pedro Melo <melo@xxxxxxxxxxxxxxxx> 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..

Yes, that is what I was using until today.

I was asking for a in-repo solution, without the second git init.

The following email by Wincent Colaiuta does exactly what I wanted :).

Thanks!
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo@xxxxxxxxxxxxxxxx
Use XMPP!


--
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