diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2007-11-14 12:17:22 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2007-11-14 12:17:22 +0000 |
commit | 361c1335bb152db70cab1086e3f8505e63b60354 (patch) | |
tree | c11c838f736d02588da0a6f16183690a3c60a405 /git-commit.txt | |
parent | 14aca6e3dcbe193374c3203aeebfe7d1c52d7963 (diff) | |
download | git-htmldocs-361c1335bb152db70cab1086e3f8505e63b60354.tar.gz |
Autogenerated HTML docs for v1.5.3.5-666-gfb5f
Diffstat (limited to 'git-commit.txt')
-rw-r--r-- | git-commit.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/git-commit.txt b/git-commit.txt index e54fb1210..d4bfd49ce 100644 --- a/git-commit.txt +++ b/git-commit.txt @@ -154,10 +154,13 @@ EXAMPLES -------- When recording your own work, the contents of modified files in your working tree are temporarily stored to a staging area -called the "index" with gitlink:git-add[1]. Removal -of a file is staged with gitlink:git-rm[1]. After building the -state to be committed incrementally with these commands, `git -commit` (without any pathname parameter) is used to record what +called the "index" with gitlink:git-add[1]. A file can be +reverted back, only in the index but not in the working tree, +to that of the last commit with `git-reset HEAD -- <file>`, +which effectively reverts `git-add` and prevents the changes to +this file from participating in the next commit. After building +the state to be committed incrementally with these commands, +`git commit` (without any pathname parameter) is used to record what has been staged so far. This is the most basic form of the command. An example: |