Debian Codegraph @

doc/html/hg-forget.html

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" />
7 <title>hg forget</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="hg-forget">
12 <span id="hg-forget-1"></span>
13 <h1 class="title">hg forget</h1>
14 <h2 class="subtitle" id="forget-the-specified-files-on-the-next-commit">forget the specified files on the next commit</h2>
15
16 <div class="contents htmlonly topic" id="contents">
17 <p class="topic-title"><a class="reference internal" href="#top">Contents</a></p>
18 <ul class="simple">
19 <li><a class="reference internal" href="#synopsis" id="toc-entry-1">Synopsis</a></li>
20 <li><a class="reference internal" href="#description" id="toc-entry-2">Description</a></li>
21 <li><a class="reference internal" href="#options" id="toc-entry-3">Options</a></li>
22 </ul>
23 </div>
24 <div class="section" id="synopsis">
25 <h1><a class="toc-backref" href="#contents">Synopsis</a></h1>
26 <pre class="literal-block">
27 hg forget [OPTION]... FILE...
28 </pre>
29 </div>
30 <div class="section" id="description">
31 <h1><a class="toc-backref" href="#contents">Description</a></h1>
32 <p>Mark the specified files so they will no longer be tracked
33 after the next commit.</p>
34 <p>This only removes files from the current branch, not from the
35 entire project history, and it does not delete them from the
36 working directory.</p>
37 <p>To delete the file from the working directory, see <a class="reference external" href="hg-remove.html"><tt class="docutils literal">hg remove</tt></a>.</p>
38 <p>To undo a forget before the next commit, see <a class="reference external" href="hg-add.html"><tt class="docutils literal">hg add</tt></a>.</p>
39 <div class="verbose docutils container">
40 <p>Examples:</p>
41 <ul>
42 <li><p class="first">forget newly-added binary files:</p>
43 <pre class="literal-block">
44 hg forget &quot;set:added() and binary()&quot;
45 </pre>
46 </li>
47 <li><p class="first">forget files that would be excluded by .hgignore:</p>
48 <pre class="literal-block">
49 hg forget &quot;set:hgignore()&quot;
50 </pre>
51 </li>
52 </ul>
53 </div>
54 <p>Returns 0 on success.</p>
55 </div>
56 <div class="section" id="options">
57 <h1><a class="toc-backref" href="#contents">Options</a></h1>
58 <table class="docutils option-list" frame="void" rules="none">
59 <col class="option" />
60 <col class="description" />
61 <tbody valign="top">
62 <tr><td class="option-group" colspan="2">
63 <kbd><span class="option">-i</span>, <span class="option">--interactive</span></kbd></td>
64 </tr>
65 <tr><td>&nbsp;</td><td>use interactive mode</td></tr>
66 <tr><td class="option-group" colspan="2">
67 <kbd><span class="option">-I</span>, <span class="option">--include <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
68 </tr>
69 <tr><td>&nbsp;</td><td>include names matching the given patterns</td></tr>
70 <tr><td class="option-group" colspan="2">
71 <kbd><span class="option">-X</span>, <span class="option">--exclude <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
72 </tr>
73 <tr><td>&nbsp;</td><td>exclude names matching the given patterns</td></tr>
74 <tr><td class="option-group">
75 <kbd><span class="option">-n</span>, <span class="option">--dry-run</span></kbd></td>
76 <td>do not perform actions, just print output</td></tr>
77 </tbody>
78 </table>
79 <p>[+] marked option can be specified multiple times</p>
80 </div>
81 </div>
82 </body>
83 </html>