How do you squash commits into one patch with git format-patch?

前端 未结 8 1105
無奈伤痛
無奈伤痛 2020-11-30 16:58

I\'ve got eight commits on a branch that I\'d like to email to some people who aren\'t git enlightened, yet. So far, everything I do either gives me 8 patch files, or start

8条回答
  •  心在旅途
    2020-11-30 17:18

    Format-patch between two tags:

    git checkout 
    git checkout -b 
    git merge --squash 
    git commit -a -m ""
    git format-patch 
    

提交回复
热议问题