I am running git with help git commit -m 'commit message', but this only has a short description. How to add a more detailed description using git bash?
git commit -m 'commit message'
You can specify several options -m:
-m
git commit -m 'foo bar' -m 'baz qux'
git log will display several paragraphs:
git log
commit ... Author: ... Date: ... foo bar baz qux
How about this?
git commit -F - <<EOF summary This is a multi-line commit message. EOF
, git commit, ?
git commit
. Git $GIT_EDITOR, core.editor, $VISUAL , , $EDITOR. git-var , git-config core.editor.
$GIT_EDITOR
core.editor
$VISUAL
$EDITOR
git-var
git-config
long commit . , :
git commit -F <path/to/file>
: https://www.kernel.org/pub/software/scm/git/docs/git-commit.html
, !
man git commit:
man git commit
-m <msg>, --message=<msg> Use the given <msg> as the commit message. If multiple -m options are given, their values are concatenated as separate paragraphs.
, :
git commit -m "Subject" -m "paragraph 1" -m "paragraph 2"
,
-F "file", --file = "file" . - .