Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use git format-patch on initial commit

Tags:

I need to get patch file for inital commit (which is not empty) for our review process, but I'm confused as git format-patch command only makes it from branch that is on initial commit not including it.

Seems it must be some obvious move but I'm completely missing it.

like image 974
Vlad Fedin Avatar asked Jun 25 '12 21:06

Vlad Fedin


People also ask

How do I apply a git patch extension?

You can use Commands -> Format patch. In the window that pops up, you can select multiple commits. The result will be one patch file per commit. That's in line with the default behavior of git format-patch .


1 Answers

Try git format-patch --root $SHA (where $SHA is that first commit)

like image 135
Lily Ballard Avatar answered Oct 15 '22 04:10

Lily Ballard