Re: Parent-less branches

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

 



El 2/5/2008, a las 23:47, Junio C Hamano escribió:
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..

I wanted to do this just the other day, but I did it all inside the one repo, and made some notes on the process here:

http://rails.wincent.com/wiki/Creating_independent_branches_with_Git

Basically, using "git write-tree" and "git commit-tree" plumbing.

Cheers,
Wincent



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