<div class="sectionbody">\r
<p>Use <em>git commit</em> to store the current contents of the index in a new\r
commit along with a log message describing the changes you have made.</p>\r
-<p>The content to be added can be specified in several ways:\r
-1. by using <a href="git-add.html">git-add(1)</a> to incrementally "add" changes to the\r
- index before using the <em>commit</em> command (Note: even modified\r
- files must be "added");</p>\r
+<p>The content to be added can be specified in several ways:</p>\r
<ol>\r
<li>\r
<p>\r
+by using <a href="git-add.html">git-add(1)</a> to incrementally "add" changes to the\r
+ index before using the <em>commit</em> command (Note: even modified\r
+ files must be "added");\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
by using <a href="git-rm.html">git-rm(1)</a> to remove files from the working tree\r
and the index, again before using the <em>commit</em> command;\r
</p>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 06-Aug-2007 06:42:07 UTC\r
+Last updated 08-Aug-2007 09:20:37 UTC\r
</div>\r
</div>\r
</body>\r
commit along with a log message describing the changes you have made.
The content to be added can be specified in several ways:
+
1. by using gitlink:git-add[1] to incrementally "add" changes to the
index before using the 'commit' command (Note: even modified
files must be "added");
you create one.</p>\r
<p>The latest stash you created is stored in <tt>$GIT_DIR/refs/stash</tt>; older\r
stashes are found in the reflog of this reference and can be named using\r
-the usual reflog syntax (e.g. <tt>stash@{1}</tt> is the most recently\r
-created stash, <tt>stash@{2}</tt> is the one before it, <tt>stash@{2.hours.ago}</tt>\r
+the usual reflog syntax (e.g. <tt>stash@{0}</tt> is the most recently\r
+created stash, <tt>stash@{1}</tt> is the one before it, <tt>stash@{2.hours.ago}</tt>\r
is also possible).</p>\r
</div>\r
<h2>OPTIONS</h2>\r
<dd>\r
<p>\r
List the stashes that you currently have. Each <em>stash</em> is listed\r
- with its name (e.g. <tt>stash@{0}</tt> is the latest stash, `stash@{1} is\r
+ with its name (e.g. <tt>stash@{0}</tt> is the latest stash, <tt>stash@{1}</tt> is\r
the one before, etc.), the name of the branch that was current when the\r
stash was made, and a short description of the commit the stash was\r
based on.\r
stashed state and its original parent. When no <tt><stash></tt> is given,\r
shows the latest one. By default, the command shows the diffstat, but\r
it will accept any format known to <tt>git-diff</tt> (e.g., <tt>git-stash show\r
- -p stash@{2}</tt> to view the second most recent stash in patch form).\r
+ -p stash@{1}</tt> to view the second most recent stash in patch form).\r
</p>\r
</dd>\r
<dt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 19-Jul-2007 02:09:56 UTC\r
+Last updated 08-Aug-2007 09:20:37 UTC\r
</div>\r
</div>\r
</body>\r
The latest stash you created is stored in `$GIT_DIR/refs/stash`; older
stashes are found in the reflog of this reference and can be named using
-the usual reflog syntax (e.g. `stash@\{1}` is the most recently
-created stash, `stash@\{2}` is the one before it, `stash@\{2.hours.ago}`
+the usual reflog syntax (e.g. `stash@\{0}` is the most recently
+created stash, `stash@\{1}` is the one before it, `stash@\{2.hours.ago}`
is also possible).
OPTIONS
list::
List the stashes that you currently have. Each 'stash' is listed
- with its name (e.g. `stash@\{0}` is the latest stash, `stash@\{1} is
+ with its name (e.g. `stash@\{0}` is the latest stash, `stash@\{1}` is
the one before, etc.), the name of the branch that was current when the
stash was made, and a short description of the commit the stash was
based on.
stashed state and its original parent. When no `<stash>` is given,
shows the latest one. By default, the command shows the diffstat, but
it will accept any format known to `git-diff` (e.g., `git-stash show
- -p stash@\{2}` to view the second most recent stash in patch form).
+ -p stash@\{1}` to view the second most recent stash in patch form).
apply [<stash>]::
<p>The command takes the same set of options as <tt>git-commit</tt>; it\r
shows what would be committed if the same options are given to\r
<tt>git-commit</tt>.</p>\r
+<p>If any paths have been touched in the working tree (that is,\r
+their modification times have changed) but their contents and\r
+permissions are identical to those in the index file, the command\r
+updates the index file. Running <tt>git-status</tt> can thus speed up\r
+subsequent operations such as <tt>git-diff</tt> if the working tree\r
+contains many paths that have been touched but not modified.</p>\r
</div>\r
<h2>OUTPUT</h2>\r
<div class="sectionbody">\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 19-Jul-2007 02:09:56 UTC\r
+Last updated 08-Aug-2007 09:20:38 UTC\r
</div>\r
</div>\r
</body>\r
shows what would be committed if the same options are given to
`git-commit`.
+If any paths have been touched in the working tree (that is,
+their modification times have changed) but their contents and
+permissions are identical to those in the index file, the command
+updates the index file. Running `git-status` can thus speed up
+subsequent operations such as `git-diff` if the working tree
+contains many paths that have been touched but not modified.
+
OUTPUT
------