diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-02-06 23:20:47 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-06 23:20:47 -0800 |
commit | 23168ef89678fc52e01173bbc7fdaa760f21d02a (patch) | |
tree | 8425bac71f938dfce77a3c2928b2c936b03789c9 /git-commit.txt | |
parent | 2567b326fac6961a6fc6075ad2f22a744252f2f3 (diff) | |
download | git-htmldocs-23168ef89678fc52e01173bbc7fdaa760f21d02a.tar.gz |
Autogenerated HTML docs for v2.21.0-rc0
Diffstat (limited to 'git-commit.txt')
-rw-r--r-- | git-commit.txt | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/git-commit.txt b/git-commit.txt index f970a4342..a85c2c2a4 100644 --- a/git-commit.txt +++ b/git-commit.txt @@ -17,16 +17,20 @@ SYNOPSIS DESCRIPTION ----------- -Stores the current contents of the index in a new commit along -with a log message from the user describing the changes. +Create a new commit containing the current contents of the index and +the given log message describing the changes. The new commit is a +direct child of HEAD, usually the tip of the current branch, and the +branch is updated to point to it (unless no branch is associated with +the working tree, in which case HEAD is "detached" as described in +linkgit:git-checkout[1]). -The content to be added can be specified in several ways: +The content to be committed can be specified in several ways: -1. by using 'git add' to incrementally "add" changes to the - index before using the 'commit' command (Note: even modified - files must be "added"); +1. by using linkgit:git-add[1] to incrementally "add" changes to the + index before using the 'commit' command (Note: even modified files + must be "added"); -2. by using 'git rm' to remove files from the working tree +2. by using linkgit:git-rm[1] to remove files from the working tree and the index, again before using the 'commit' command; 3. by listing files as arguments to the 'commit' command |