Re: Splitting up a changeset

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

 



On Aug 20, 2007, at 6:32 AM, Frank Showman wrote:

What I really want to do is merge a couple of files from a changeset
at a time. Given that GIT doesn't track files, the only sensible way
to do that seems to split up the changeset (I want GIT to track the
merges) and then merge (cherry pick) the split up stuff.

Is there some (reasonably simple) way to do that?

   One way I've done this in the past is like this:

git cherry-pick -n <rev-to-split-up>
git reset HEAD
git add <first-batch-of-files>
git commit
git add <next-batch-of-files>
git commit
...

-Adam

-
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