1 $ git format-patch --stdout initial..master^
2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001
3 From: A U Thor <author@example.com>
4 Date: Mon, 26 Jun 2006 00:01:00 +0000
5 Subject: [PATCH] Second
7 This is the second commit.
8 ---
9 dir/sub | 2 ++
10 file0 | 3 +++
11 file2 | 3 ---
12 3 files changed, 5 insertions(+), 3 deletions(-)
14 diff --git a/dir/sub b/dir/sub
15 index 35d242b..8422d40 100644
16 --- a/dir/sub
17 +++ b/dir/sub
18 @@ -1,2 +1,4 @@
19 A
20 B
21 +C
22 +D
23 diff --git a/file0 b/file0
24 index 01e79c3..b414108 100644
25 --- a/file0
26 +++ b/file0
27 @@ -1,3 +1,6 @@
28 1
29 2
30 3
31 +4
32 +5
33 +6
34 diff --git a/file2 b/file2
35 deleted file mode 100644
36 index 01e79c3..0000000
37 --- a/file2
38 +++ /dev/null
39 @@ -1,3 +0,0 @@
40 -1
41 -2
42 -3
43 --
44 g-i-t--v-e-r-s-i-o-n
47 From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001
48 From: A U Thor <author@example.com>
49 Date: Mon, 26 Jun 2006 00:02:00 +0000
50 Subject: [PATCH] Third
51 ---
52 dir/sub | 2 ++
53 file1 | 3 +++
54 2 files changed, 5 insertions(+), 0 deletions(-)
56 diff --git a/dir/sub b/dir/sub
57 index 8422d40..cead32e 100644
58 --- a/dir/sub
59 +++ b/dir/sub
60 @@ -2,3 +2,5 @@ A
61 B
62 C
63 D
64 +E
65 +F
66 diff --git a/file1 b/file1
67 new file mode 100644
68 index 0000000..b1e6722
69 --- /dev/null
70 +++ b/file1
71 @@ -0,0 +1,3 @@
72 +A
73 +B
74 +C
75 --
76 g-i-t--v-e-r-s-i-o-n
78 $