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 
> B, 
> > 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 git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to