logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hg forget - forget the specified files on the next commit

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 hgremove.

       To undo a forget before the next commit, see hgadd.

       Examples:

       • forget newly-added binary files:

         hg forget "set:added() and binary()"

       • forget files that would be excluded by .hgignore:

         hg forget "set:hgignore()"

         Returns 0 on success.

Name

       hg forget - forget the specified files on the next commit

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

                                                                                                      HG(FORGET)

Synopsis

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

See Also