9
9
--------
10
10
[verse]
11
11
'git replace' [-f] <object> <replacement>
12
+ 'git replace' [-f] --edit <object>
12
13
'git replace' -d <object>...
13
14
'git replace' [--format=<format>] [-l [<pattern>]]
14
15
@@ -63,6 +64,15 @@ OPTIONS
63
64
--delete::
64
65
Delete existing replace refs for the given objects.
65
66
67
+ --edit <object>::
68
+ Edit an object's content interactively. The existing content
69
+ for <object> is pretty-printed into a temporary file, an
70
+ editor is launched on the file, and the result is parsed to
71
+ create a new object of the same type as <object>. A
72
+ replacement ref is then created to replace <object> with the
73
+ newly created object. See linkgit:git-var[1] for details about
74
+ how the editor will be chosen.
75
+
66
76
-l <pattern>::
67
77
--list <pattern>::
68
78
List replace refs for objects that match the given pattern (or
@@ -92,7 +102,9 @@ CREATING REPLACEMENT OBJECTS
92
102
93
103
linkgit:git-filter-branch[1], linkgit:git-hash-object[1] and
94
104
linkgit:git-rebase[1], among other git commands, can be used to create
95
- replacement objects from existing objects.
105
+ replacement objects from existing objects. The `--edit` option can
106
+ also be used with 'git replace' to create a replacement object by
107
+ editing an existing object.
96
108
97
109
If you want to replace many blobs, trees or commits that are part of a
98
110
string of commits, you may just want to create a replacement string of
@@ -117,6 +129,8 @@ linkgit:git-filter-branch[1]
117
129
linkgit:git-rebase[1]
118
130
linkgit:git-tag[1]
119
131
linkgit:git-branch[1]
132
+ linkgit:git-commit[1]
133
+ linkgit:git-var[1]
120
134
linkgit:git[1]
121
135
122
136
GIT
0 commit comments