Re: copy selected history between repostories

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

 



On Sat, Jul 19, 2008 at 11:01:22AM +1000, Nick Andrew wrote:

> I couldn't figure out git-filter-branch, so I did the following,
> which worked for me:
> 
> First, export commits as patches in mbox format:
> 
> 	git log -p --first-parent --reverse --pretty=email $* > mbox
> [...]
> 
> Finally, import into new repo:
> 
> 	git-am mbox2

Note that this will lose any interesting history topology you had, like
branching and merging (and it may have trouble applying all patches in
that case, too). But if your history was a straight line, it should
produce equivalent results.

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