hg-forget - Man Page

forget the specified files on the next commit

Synopsis

hg forget [OPTION]... FILE...

Description

Mark the specified files so they will no longer be tracked after the next commit.

This only removes files from the current branch, not from the entire project history, and it does not delete them from the working directory.

To delete the file from the working directory, see hg remove.

To undo a forget before the next commit, see hg add.

Examples:

Options

-i,  --interactive

use interactive mode

-I,--include <PATTERN[+]>

include names matching the given patterns

-X,--exclude <PATTERN[+]>

exclude names matching the given patterns

-n,  --dry-run

do not perform actions, just print output

[+] marked option can be specified multiple times