Skip to content

Commit 6b34d6e

Browse files
committed
Merge branch 'mm/maint-doc-commit-edit'
* mm/maint-doc-commit-edit: Document 'git commit --no-edit' explicitly
2 parents 80b2234 + ae45320 commit 6b34d6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/git-commit.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ OPTIONS
188188
commit log message unmodified. This option lets you
189189
further edit the message taken from these sources.
190190

191+
--no-edit::
192+
Use the selected commit message without launching an editor.
193+
For example, `git commit --amend --no-edit` amends a commit
194+
without changing its commit message.
195+
191196
--amend::
192197
Used to amend the tip of the current branch. Prepare the tree
193198
object you would want to replace the latest commit as usual

0 commit comments

Comments
 (0)