Autogenerated HTML docs for v1.5.3.6-970-gd25430
authorJunio C Hamano <junio@hera.kernel.org>
Thu, 29 Nov 2007 02:28:32 +0000 (02:28 +0000)
committerJunio C Hamano <junio@hera.kernel.org>
Thu, 29 Nov 2007 02:28:32 +0000 (02:28 +0000)
git-branch.html
git-branch.txt

index de381c0..9fdf799 100644 (file)
@@ -305,8 +305,12 @@ renaming. If &lt;newbranch&gt; exists, -M must be used to force the rename
 to happen.</p>\r
 <p>With a <tt>-d</tt> or <tt>-D</tt> option, <tt>&lt;branchname&gt;</tt> will be deleted.  You may\r
 specify more than one branch for deletion.  If the branch currently\r
-has a reflog then the reflog will also be deleted. Use -r together with -d\r
-to delete remote-tracking branches.</p>\r
+has a reflog then the reflog will also be deleted.</p>\r
+<p>Use -r together with -d to delete remote-tracking branches. Note, that it\r
+only makes sense to delete remote-tracking branches if they no longer exist\r
+in remote repository or if <a href="git-fetch.html">git-fetch(1)</a> was configured not to fetch\r
+them again. See also <em>prune</em> subcommand of <a href="git-remote.html">git-remote(1)</a> for way to\r
+clean up all obsolete remote-tracking branches.</p>\r
 </div>\r
 <h2>OPTIONS</h2>\r
 <div class="sectionbody">\r
@@ -316,7 +320,7 @@ to delete remote-tracking branches.</p>
 </dt>\r
 <dd>\r
 <p>\r
-        Delete a branch. The branch must be fully merged.\r
+        Delete a branch. The branch must be fully merged in HEAD.\r
 </p>\r
 </dd>\r
 <dt>\r
@@ -324,7 +328,7 @@ to delete remote-tracking branches.</p>
 </dt>\r
 <dd>\r
 <p>\r
-        Delete a branch irrespective of its index status.\r
+        Delete a branch irrespective of its merged status.\r
 </p>\r
 </dd>\r
 <dt>\r
@@ -522,13 +526,15 @@ $ git branch -D test                                    <b>(2)</b></tt></pre>
 <ol>\r
 <li>\r
 <p>\r
-Delete remote-tracking branches "todo", "html", "man"\r
+Delete remote-tracking branches "todo", "html", "man". Next <em>fetch</em> or\r
+<em>pull</em> will create them again unless you configure them not to. See\r
+<a href="git-fetch.html">git-fetch(1)</a>.\r
 </p>\r
 </li>\r
 <li>\r
 <p>\r
-Delete "test" branch even if the "master" branch does not have all\r
-commits from test branch.\r
+Delete "test" branch even if the "master" branch (or whichever branch is\r
+currently checked out) does not have all commits from test branch.\r
 </p>\r
 </li>\r
 </ol>\r
@@ -555,7 +561,7 @@ a branch and check it out with a single command.</p>
 </div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 14-Nov-2007 12:11:22 UTC\r
+Last updated 29-Nov-2007 02:27:34 UTC\r
 </div>\r
 </div>\r
 </body>\r
index 5ce905d..f87b696 100644 (file)
@@ -45,17 +45,22 @@ to happen.
 
 With a `-d` or `-D` option, `<branchname>` will be deleted.  You may
 specify more than one branch for deletion.  If the branch currently
-has a reflog then the reflog will also be deleted. Use -r together with -d
-to delete remote-tracking branches.
+has a reflog then the reflog will also be deleted.
+
+Use -r together with -d to delete remote-tracking branches. Note, that it
+only makes sense to delete remote-tracking branches if they no longer exist
+in remote repository or if gitlink:git-fetch[1] was configured not to fetch
+them again. See also 'prune' subcommand of gitlink:git-remote[1] for way to
+clean up all obsolete remote-tracking branches.
 
 
 OPTIONS
 -------
 -d::
-       Delete a branch. The branch must be fully merged.
+       Delete a branch. The branch must be fully merged in HEAD.
 
 -D::
-       Delete a branch irrespective of its index status.
+       Delete a branch irrespective of its merged status.
 
 -l::
        Create the branch's reflog.  This activates recording of
@@ -153,9 +158,11 @@ $ git branch -d -r origin/todo origin/html origin/man   <1>
 $ git branch -D test                                    <2>
 ------------
 +
-<1> Delete remote-tracking branches "todo", "html", "man"
-<2> Delete "test" branch even if the "master" branch does not have all
-commits from test branch.
+<1> Delete remote-tracking branches "todo", "html", "man". Next 'fetch' or
+'pull' will create them again unless you configure them not to. See
+gitlink:git-fetch[1].
+<2> Delete "test" branch even if the "master" branch (or whichever branch is
+currently checked out) does not have all commits from test branch.
 
 
 Notes