I need to merge multiple special commits to one.Please help me.
    For example, I have some commits like this:
    Some of these were commited by me. I want to select them and merge them 
to one commit just like A->C->E.The new commit A  include the commit A B 
and D. 
    Now I knew one method to merge multiple commits to one.
*    git resest --soft HEAD^n*
*    **git commit --amend*
   BUT this method can just merge the TOP n commit not the special ones.
   Please tell me how can I finish this work.Thanks.


Reply via email to