| 1 |
.TH HG FORGET "" "" "" |
| 2 |
.SH NAME |
| 3 |
hg forget \- forget the specified files on the next commit |
| 4 |
.\" Man page generated from reStructuredText. |
| 5 |
. |
| 6 |
.SH SYNOPSIS |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
.ft C |
| 10 |
hg forget [OPTION]... FILE... |
| 11 |
.ft P |
| 12 |
.fi |
| 13 |
.SH DESCRIPTION |
| 14 |
.sp |
| 15 |
Mark the specified files so they will no longer be tracked |
| 16 |
after the next commit. |
| 17 |
.sp |
| 18 |
This only removes files from the current branch, not from the |
| 19 |
entire project history, and it does not delete them from the |
| 20 |
working directory. |
| 21 |
.sp |
| 22 |
To delete the file from the working directory, see \%\fBhg remove\fP\:. |
| 23 |
.sp |
| 24 |
To undo a forget before the next commit, see \%\fBhg add\fP\:. |
| 25 |
.sp |
| 26 |
Examples: |
| 27 |
.INDENT 0.0 |
| 28 |
.IP \(bu 2 |
| 29 |
. |
| 30 |
forget newly\-added binary files: |
| 31 |
.sp |
| 32 |
.nf |
| 33 |
.ft C |
| 34 |
hg forget "set:added() and binary()" |
| 35 |
.ft P |
| 36 |
.fi |
| 37 |
.IP \(bu 2 |
| 38 |
. |
| 39 |
forget files that would be excluded by .hgignore: |
| 40 |
.sp |
| 41 |
.nf |
| 42 |
.ft C |
| 43 |
hg forget "set:hgignore()" |
| 44 |
.ft P |
| 45 |
.fi |
| 46 |
.UNINDENT |
| 47 |
.sp |
| 48 |
Returns 0 on success. |
| 49 |
.SH OPTIONS |
| 50 |
.INDENT 0.0 |
| 51 |
.TP |
| 52 |
.B \-i, \-\-interactive |
| 53 |
. |
| 54 |
use interactive mode |
| 55 |
.TP |
| 56 |
.BI \-I, \-\-include \ <PATTERN[+]> |
| 57 |
. |
| 58 |
include names matching the given patterns |
| 59 |
.TP |
| 60 |
.BI \-X, \-\-exclude \ <PATTERN[+]> |
| 61 |
. |
| 62 |
exclude names matching the given patterns |
| 63 |
.TP |
| 64 |
.B \-n, \-\-dry\-run |
| 65 |
. |
| 66 |
do not perform actions, just print output |
| 67 |
.UNINDENT |
| 68 |
.sp |
| 69 |
[+] marked option can be specified multiple times |
| 70 |
.\" Generated by docutils manpage writer. |
| 71 |
.\" |
| 72 |
. |