git commit [pathspec...]

Record changes to the repository

Arguments

NameDescription
pathspecfilepaths

Options

NameDescription
-m, --message <message>Use the given message as the commit message
-a, --allStage all modified and deleted paths
-am <message>Stage all and use given text as commit message
-v, --verboseShow unified diff of all file changes
-p, --patchUse the interactive patch selection interface to chose which changes to commi
-C, --reuse-message <commit>Take an existing commit object, and reuse the log message and the authorship
-c, --reedit-message <commit>Like -C, but with -c the editor is invoked, so that the user can further edit
--fixup <commit>Construct a commit message for use with rebase --autosquash. The commit messa
--squash <commit>Construct a commit message for use with rebase --autosquash. The commit messa
--reset-authorWhen used with -C/-c/--amend options, or when committing after a conflicting
--shortWhen doing a dry-run, give the output in the short-format. See git-status[1]
--branchShow the branch and tracking info even in short-format
--porcelainWhen doing a dry-run, give the output in a porcelain-ready format. See git-st
--longWhen doing a dry-run, give the output in the long-format. Implies --dry-run
-z, --nullWhen showing short or porcelain status output, print the filename verbatim an
-F, --file <file>Take the commit message from the given file. Use - to read the message from t
--author <author>Override the commit author. Specify an explicit author using the standard A U
--date <date>Override the author date used in the commit
-t, --template <file>When editing the commit message, start the editor with the contents in the gi
-s, --signoffAdd a Signed-off-by trailer by the committer at the end of the commit log mes
--no-signoffDon't add a Signed-off-by trailer by the committer at the end of the commit l
-n, --no-verifyThis option bypasses the pre-commit and commit-msg hooks. See also githooks[5]
--allow-emptyUsually recording a commit that has the exact same tree as its sole parent co
--allow-empty-messageLike --allow-empty this command is primarily for use by foreign SCM interface
--cleanup <mode>This option determines how the supplied commit message should be cleaned up b
-e, --editThe message taken from file with -F, command line with -m, and from commit ob
--no-editUse the selected commit message without launching an editor. For example, git
--amendReplace the tip of the current branch by creating a new commit. The recorded
--no-post-rewriteBypass the post-rewrite hook
-i, --includeBefore making a commit out of staged contents so far, stage the contents of p
-o, --onlyMake a commit by taking the updated working tree contents of the paths specif
--pathspec-from-file <file>Pathspec is passed in instead of commandline args. If is exactly - then stand
--pathspec-file-nulOnly meaningful with --pathspec-from-file. Pathspec elements are separated wi
-u, --untracked-files [mode]Show untracked files. The mode parameter is optional (defaults to all), and i
-q, --quietSuppress commit summary message
--dry-runDo not create a commit, but show a list of paths that are to be committed, pa
--statusInclude the output of git-status[1] in the commit message template when using
--no-statusDo not include the output of git-status[1] in the commit message template whe
-S, --gpg-sign [keyid]GPG-sign commits. The keyid argument is optional and defaults to the committe
--no-gpg-signDont GPG-sign commits
--Do not interpret any more arguments as options