you must run <em>git add</em> again to add the new content to the index.</p>\r
<p>The <em>git status</em> command can be used to obtain a summary of which\r
files have changes that are staged for the next commit.</p>\r
-<p>The <em>add</em> command can be used to add ignored files with <tt>-f</tt> (force)\r
-option, but they have to be explicitly and exactly specified from the\r
-command line. File globbing and recursive behaviour do not add ignored\r
-files.</p>\r
+<p>The <em>git add</em> command will not add ignored files by default. If any\r
+ignored files were explicitly specified on the command line, <em>git add</em>\r
+will fail with a list of ignored files. Ignored files reached by\r
+directory recursion or filename globbing will be silently ignored.\r
+The <em>add</em> command can be used to add ignored files with the <tt>-f</tt>\r
+(force) option.</p>\r
<p>Please see <a href="git-commit.html">git-commit(1)</a> for alternative ways to add content to a\r
commit.</p>\r
</div>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 14-Aug-2007 09:42:24 UTC\r
+Last updated 17-Aug-2007 07:47:32 UTC\r
</div>\r
</div>\r
</body>\r
The 'git status' command can be used to obtain a summary of which
files have changes that are staged for the next commit.
-The 'add' command can be used to add ignored files with `-f` (force)
-option, but they have to be explicitly and exactly specified from the
-command line. File globbing and recursive behaviour do not add ignored
-files.
+The 'git add' command will not add ignored files by default. If any
+ignored files were explicitly specified on the command line, 'git add'
+will fail with a list of ignored files. Ignored files reached by
+directory recursion or filename globbing will be silently ignored.
+The 'add' command can be used to add ignored files with the `-f`
+(force) option.
Please see gitlink:git-commit[1] for alternative ways to add content to a
commit.
<p>then the command</p>\r
<div class="literalblock">\r
<div class="content">\r
-<pre><tt>git-rebase --onto topicA~5 topicA~2 topicA</tt></pre>\r
+<pre><tt>git-rebase --onto topicA~5 topicA~3 topicA</tt></pre>\r
</div></div>\r
<p>would result in the removal of commits F and G:</p>\r
<div class="listingblock">\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 19-Jul-2007 02:09:50 UTC\r
+Last updated 17-Aug-2007 07:47:32 UTC\r
</div>\r
</div>\r
</body>\r
then the command
- git-rebase --onto topicA~5 topicA~2 topicA
+ git-rebase --onto topicA~5 topicA~3 topicA
would result in the removal of commits F and G: