6 git-commit - Record your changes
11 'git-commit' [-a] [-s] [-v] [(-c | -C) <commit> | -F <file> | -m <msg>]
16 Updates the index file for given paths, or all modified files if
17 '-a' is specified, and makes a commit object. The command
18 VISUAL and EDITOR environment variables to edit the commit log
21 This command can run `commit-msg`, `pre-commit`, and
22 `post-commit` hooks. See link:hooks.html[hooks] for more
28 Update all paths in the index file.
31 Take existing commit object, and reuse the log message
32 and the authorship information (including the timestamp)
33 when creating the commit. With '-C', the editor is not
34 invoked; with '-c' the user can further edit the commit
38 Take the commit message from the given file. Use '-' to
39 read the message from the standard input.
42 Use the given <msg> as the commit message.
45 Add Signed-off-by line at the end of the commit message.
48 Look for suspicious lines the commit introduces, and
49 abort committing if there is one. The definition of
50 'suspicious lines' is currently the lines that has
51 trailing whitespaces, and the lines whose indentation
52 has a SP character immediately followed by a TAB
53 character. This is the default.
56 The opposite of `--verify`.
59 The message taken from file with `-F`, command line with
60 `-m`, and from file with `-C` are usually used as the
61 commit log message unmodified. This option lets you
62 further edit the message taken from these sources.
65 Do not interpret any more arguments as options.
68 Update specified paths in the index file before committing.
71 If you make a commit and then found a mistake immediately after
72 that, you can recover from it with gitlink:git-reset[1].
77 Written by Linus Torvalds <torvalds@osdl.org> and
78 Junio C Hamano <junkio@cox.net>
83 Part of the gitlink:git[7] suite