Skip to content

Commit 9c3f19f

Browse files
committed
Merge branch 'jk/maint-commit-document-editmsg'
Document $GIT_DIR/COMMIT_EDITMSG file. * jk/maint-commit-document-editmsg: commit: document the temporary commit message file
2 parents 18502e3 + 41f597d commit 9c3f19f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Documentation/git-commit.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,15 @@ This command can run `commit-msg`, `prepare-commit-msg`, `pre-commit`,
407407
and `post-commit` hooks. See linkgit:githooks[5] for more
408408
information.
409409

410+
FILES
411+
-----
412+
413+
`$GIT_DIR/COMMIT_EDITMSG`::
414+
This file contains the commit message of a commit in progress.
415+
If `git commit` exits due to an error before creating a commit,
416+
any commit message that has been provided by the user (e.g., in
417+
an editor session) will be available in this file, but will be
418+
overwritten by the next invocation of `git commit`.
410419

411420
SEE ALSO
412421
--------

0 commit comments

Comments
 (0)