On Tuesday, July 24, 2012 5:11:04 PM UTC+2, lei yang wrote:
> > If you want to format-patch for example the last two commits on branch
> > this should do it:
> > git format-patch B~2..B
> Yes I know this, but I don't know how to fromat it with commit without
> switching to B
> eg: git format-patch commit1..commit2,
> but How could I could I format branch B's?
You don't have to switch to branch B to do the above command. You can do it
on any branch you like, and still get patch files from branch B.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To view this discussion on the web visit
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at