7 git-commit - Record your changes
11 'git commit' [-a] [-s] [-v] [(-c | -C) <commit> | -F <file> | -m <msg>] [-e] <file>...
15 Updates the index file for given paths, or all modified files if
16 '-a' is specified, and makes a commit object. The command
17 VISUAL and EDITOR environment variables to edit the commit log
20 This command can run `commit-msg`, `pre-commit`, and
21 `post-commit` hooks. See link:hooks.html[hooks] for more
27 Update all paths in the index file.
30 Take existing commit object, and reuse the log message
31 and the authorship information (including the timestamp)
32 when creating the commit. With '-C', the editor is not
33 invoked; with '-c' the user can further edit the commit
37 Take the commit message from the given file. Use '-' to
38 read the message from the standard input.
41 Use the given <msg> as the commit message.
44 Add Signed-off-by line at the end of the commit message.
47 Look for suspicious lines the commit introduces, and
48 abort committing if there is one. The definition of
49 'suspicious lines' is currently the lines that has
50 trailing whitespaces, and the lines whose indentation
51 has a SP character immediately followed by a TAB
55 The message taken from file with `-F`, command line with
56 `-m`, and from file with `-C` are usually used as the
57 commit log message unmodified. This option lets you
58 further edit the message taken from these sources.
61 Update specified paths in the index file before committing.
66 Written by Linus Torvalds <torvalds@osdl.org> and
67 Junio C Hamano <junkio@cox.net>
72 Part of the link:git.html[git] suite