.TH HG FORGET "" "" "" .SH NAME hg forget \- forget the specified files on the next commit .\" Man page generated from reStructuredText. . .SH SYNOPSIS .sp .nf .ft C hg forget [OPTION]... FILE... .ft P .fi .SH DESCRIPTION .sp Mark the specified files so they will no longer be tracked after the next commit. .sp This only removes files from the current branch, not from the entire project history, and it does not delete them from the working directory. .sp To delete the file from the working directory, see \%\fBhg remove\fP\:. .sp To undo a forget before the next commit, see \%\fBhg add\fP\:. .sp Examples: .INDENT 0.0 .IP \(bu 2 . forget newly\-added binary files: .sp .nf .ft C hg forget "set:added() and binary()" .ft P .fi .IP \(bu 2 . forget files that would be excluded by .hgignore: .sp .nf .ft C hg forget "set:hgignore()" .ft P .fi .UNINDENT .sp Returns 0 on success. .SH OPTIONS .INDENT 0.0 .TP .B \-i, \-\-interactive . use interactive mode .TP .BI \-I, \-\-include \ . include names matching the given patterns .TP .BI \-X, \-\-exclude \ . exclude names matching the given patterns .TP .B \-n, \-\-dry\-run . do not perform actions, just print output .UNINDENT .sp [+] marked option can be specified multiple times .\" Generated by docutils manpage writer. .\" .