With Git, is it possible to re-apply an ancestor revision?

Viewed 4738

Say I have revision A that's from a long time ago and made a desirable change.

Then, later on, I had revision B which made lots of changes to lots of files, including wiping out change A.

Now, much later, I want to re-apply revision A. Is there a good way to do this? The merge and cherry-pick commands seem to skip revisions that are ancestors, and I don't see any flags to ignore ancestry.

There's always diff/apply, but are those really the best way? It seems like this could be "lossy" (going through the intermediary patch format) and might not allow git to use all of the tools normally at its disposal... but this is an uninformed hunch on my part.

2 Answers
Related