CINXE.COM
drafts: Branches
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="icon" href="/drafts/static/hgicon.png" type="image/png" /> <meta name="robots" content="index, nofollow"/> <link rel="stylesheet" href="/drafts/static/style-monoblue.css" type="text/css" /> <script type="text/javascript" src="/drafts/static/mercurial.js"></script> <title>drafts: Branches</title> <link rel="alternate" type="application/atom+xml" href="/drafts/atom-log" title="Atom feed for drafts"/> <link rel="alternate" type="application/rss+xml" href="/drafts/rss-log" title="RSS feed for drafts"/> </head> <body> <div id="container"> <div class="page-header"> <h1 class="breadcrumb"><a href="/">Mercurial</a> > <a href="/drafts">drafts</a> / help</h1> <form action="/drafts/log"> <dl class="search"> <dt><label>Search: </label></dt> <dd><input type="text" name="rev" /></dd> </dl> </form> <ul class="page-nav"> <li><a href="/drafts/summary">summary</a></li> <li><a href="/drafts/shortlog">shortlog</a></li> <li><a href="/drafts/changelog">changelog</a></li> <li><a href="/drafts/graph/">graph</a></li> <li><a href="/drafts/tags">tags</a></li> <li><a href="/drafts/bookmarks">bookmarks</a></li> <li><a href="/drafts/help">branches</a></li> <li><a href="/drafts/file/">files</a></li> <li class="current">help</li> </ul> </div> <h2 class="no-link no-border">branches</h2> <table cellspacing="0"> <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr> <tr><td> <a href="/drafts/help/config"> config </a> </td><td> Configuration Files </td></tr> <tr><td> <a href="/drafts/help/dates"> dates </a> </td><td> Date Formats </td></tr> <tr><td> <a href="/drafts/help/diffs"> diffs </a> </td><td> Diff Formats </td></tr> <tr><td> <a href="/drafts/help/environment"> environment </a> </td><td> Environment Variables </td></tr> <tr><td> <a href="/drafts/help/extensions"> extensions </a> </td><td> Using Additional Features </td></tr> <tr><td> <a href="/drafts/help/filesets"> filesets </a> </td><td> Specifying File Sets </td></tr> <tr><td> <a href="/drafts/help/git"> git </a> </td><td> Working with Git Repositories </td></tr> <tr><td> <a href="/drafts/help/glossary"> glossary </a> </td><td> Glossary </td></tr> <tr><td> <a href="/drafts/help/hgignore"> hgignore </a> </td><td> Syntax for Mercurial Ignore Files </td></tr> <tr><td> <a href="/drafts/help/hgweb"> hgweb </a> </td><td> Configuring hgweb </td></tr> <tr><td> <a href="/drafts/help/merge-tools"> merge-tools </a> </td><td> Merge Tools </td></tr> <tr><td> <a href="/drafts/help/multirevs"> multirevs </a> </td><td> Specifying Multiple Revisions </td></tr> <tr><td> <a href="/drafts/help/patterns"> patterns </a> </td><td> File Name Patterns </td></tr> <tr><td> <a href="/drafts/help/phases"> phases </a> </td><td> Working with Phases </td></tr> <tr><td> <a href="/drafts/help/revisions"> revisions </a> </td><td> Specifying Single Revisions </td></tr> <tr><td> <a href="/drafts/help/revsets"> revsets </a> </td><td> Specifying Revision Sets </td></tr> <tr><td> <a href="/drafts/help/subrepos"> subrepos </a> </td><td> Subrepositories </td></tr> <tr><td> <a href="/drafts/help/templating"> templating </a> </td><td> Template Usage </td></tr> <tr><td> <a href="/drafts/help/urls"> urls </a> </td><td> URL Paths </td></tr> <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr> <tr><td> <a href="/drafts/help/add"> add </a> </td><td> add the specified files on the next commit </td></tr> <tr><td> <a href="/drafts/help/annotate"> annotate </a> </td><td> show changeset information by line for each file </td></tr> <tr><td> <a href="/drafts/help/clone"> clone </a> </td><td> make a copy of an existing repository </td></tr> <tr><td> <a href="/drafts/help/commit"> commit </a> </td><td> commit the specified files or all outstanding changes </td></tr> <tr><td> <a href="/drafts/help/diff"> diff </a> </td><td> diff repository (or selected files) </td></tr> <tr><td> <a href="/drafts/help/export"> export </a> </td><td> dump the header and diffs for one or more changesets </td></tr> <tr><td> <a href="/drafts/help/forget"> forget </a> </td><td> forget the specified files on the next commit </td></tr> <tr><td> <a href="/drafts/help/init"> init </a> </td><td> create a new repository in the given directory </td></tr> <tr><td> <a href="/drafts/help/log"> log </a> </td><td> show revision history of entire repository or files </td></tr> <tr><td> <a href="/drafts/help/merge"> merge </a> </td><td> merge working directory with another revision </td></tr> <tr><td> <a href="/drafts/help/pull"> pull </a> </td><td> pull changes from the specified source </td></tr> <tr><td> <a href="/drafts/help/push"> push </a> </td><td> push changes to the specified destination </td></tr> <tr><td> <a href="/drafts/help/remove"> remove </a> </td><td> remove the specified files on the next commit </td></tr> <tr><td> <a href="/drafts/help/serve"> serve </a> </td><td> start stand-alone webserver </td></tr> <tr><td> <a href="/drafts/help/status"> status </a> </td><td> show changed files in the working directory </td></tr> <tr><td> <a href="/drafts/help/summary"> summary </a> </td><td> summarize working directory state </td></tr> <tr><td> <a href="/drafts/help/update"> update </a> </td><td> update working directory (or switch revisions) </td></tr> <tr><td colspan="2"><h2><a name="other" href="#other">Other Commands</a></h2></td></tr> <tr><td> <a href="/drafts/help/addremove"> addremove </a> </td><td> add all new files, delete all missing files </td></tr> <tr><td> <a href="/drafts/help/archive"> archive </a> </td><td> create an unversioned archive of a repository revision </td></tr> <tr><td> <a href="/drafts/help/backout"> backout </a> </td><td> reverse effect of earlier changeset </td></tr> <tr><td> <a href="/drafts/help/bisect"> bisect </a> </td><td> subdivision search of changesets </td></tr> <tr><td> <a href="/drafts/help/bookmarks"> bookmarks </a> </td><td> create a new bookmark or list existing bookmarks </td></tr> <tr><td> <a href="/drafts/help/branch"> branch </a> </td><td> set or show the current branch name </td></tr> <tr><td> <a href="/drafts/help/branches"> branches </a> </td><td> list repository named branches </td></tr> <tr><td> <a href="/drafts/help/bundle"> bundle </a> </td><td> create a changegroup file </td></tr> <tr><td> <a href="/drafts/help/cat"> cat </a> </td><td> output the current or given revision of files </td></tr> <tr><td> <a href="/drafts/help/config"> config </a> </td><td> show combined config settings from all hgrc files </td></tr> <tr><td> <a href="/drafts/help/copy"> copy </a> </td><td> mark files as copied for the next commit </td></tr> <tr><td> <a href="/drafts/help/graft"> graft </a> </td><td> copy changes from other branches onto the current branch </td></tr> <tr><td> <a href="/drafts/help/grep"> grep </a> </td><td> search for a pattern in specified files and revisions </td></tr> <tr><td> <a href="/drafts/help/heads"> heads </a> </td><td> show branch heads </td></tr> <tr><td> <a href="/drafts/help/help"> help </a> </td><td> show help for a given topic or a help overview </td></tr> <tr><td> <a href="/drafts/help/identify"> identify </a> </td><td> identify the working copy or specified revision </td></tr> <tr><td> <a href="/drafts/help/import"> import </a> </td><td> import an ordered set of patches </td></tr> <tr><td> <a href="/drafts/help/incoming"> incoming </a> </td><td> show new changesets found in source </td></tr> <tr><td> <a href="/drafts/help/locate"> locate </a> </td><td> locate files matching specific patterns </td></tr> <tr><td> <a href="/drafts/help/manifest"> manifest </a> </td><td> output the current or given revision of the project manifest </td></tr> <tr><td> <a href="/drafts/help/outgoing"> outgoing </a> </td><td> show changesets not found in the destination </td></tr> <tr><td> <a href="/drafts/help/parents"> parents </a> </td><td> show the parents of the working directory or revision </td></tr> <tr><td> <a href="/drafts/help/paths"> paths </a> </td><td> show aliases for remote repositories </td></tr> <tr><td> <a href="/drafts/help/phase"> phase </a> </td><td> set or show the current phase name </td></tr> <tr><td> <a href="/drafts/help/recover"> recover </a> </td><td> roll back an interrupted transaction </td></tr> <tr><td> <a href="/drafts/help/rename"> rename </a> </td><td> rename files; equivalent of copy + remove </td></tr> <tr><td> <a href="/drafts/help/resolve"> resolve </a> </td><td> redo merges or set/view the merge status of files </td></tr> <tr><td> <a href="/drafts/help/revert"> revert </a> </td><td> restore files to their checkout state </td></tr> <tr><td> <a href="/drafts/help/root"> root </a> </td><td> print the root (top) of the current working directory </td></tr> <tr><td> <a href="/drafts/help/tag"> tag </a> </td><td> add one or more tags for the current or given revision </td></tr> <tr><td> <a href="/drafts/help/tags"> tags </a> </td><td> list repository tags </td></tr> <tr><td> <a href="/drafts/help/unbundle"> unbundle </a> </td><td> apply one or more changegroup files </td></tr> <tr><td> <a href="/drafts/help/verify"> verify </a> </td><td> verify the integrity of the repository </td></tr> <tr><td> <a href="/drafts/help/version"> version </a> </td><td> output version and copyright information </td></tr> </table> <script type="text/javascript">process_dates()</script> <div class="page-footer"> <p>Mercurial Repository: drafts</p> <ul class="rss-logo"> <li><a href="/drafts/rss-log">RSS</a></li> <li><a href="/drafts/atom-log">Atom</a></li> </ul> </div> <div id="powered-by"> <p><a href="http://mercurial.selenic.com/" title="Mercurial"><img src="/drafts/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p> </div> <div id="corner-top-left"></div> <div id="corner-top-right"></div> <div id="corner-bottom-left"></div> <div id="corner-bottom-right"></div> </div> </body> </html>