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

前端 未结 8 1110
無奈伤痛
無奈伤痛 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:15

    I always use git diff so in your example, something like

    git diff master > patch.txt
    

提交回复
热议问题