I want to create a patch from a list of files. For example I have 10 commits which modify 4 files. I want to create a patch that includes changes of 3 of those 4 files during those 10 commits. How can I do that?
Asked
Active
Viewed 332 times
1
-
I think you are looking for this: http://stackoverflow.com/questions/9939952/create-a-patch-including-specific-files-in-git – Daniel Gomes Jun 10 '13 at 01:21
1 Answers
2
This worked for me:
git format-patch -10 -- file1.txt -- file2.txt -- file3.txt

cforbish
- 8,567
- 3
- 28
- 32