dmitryprogrammer
dmitryprogrammer

Reputation: 376

Mercurial: how to untrack file from added filelist?

A file was added accidentally to a Mercurial repository. How can I untrack it so that it is not included in the next commit? I'd also be interested to know how to accomplish the same task in git.

Upvotes: 0

Views: 668

Answers (1)

planetmaker
planetmaker

Reputation: 6044

You want to become aquainted with

hg forget FILENAME

It works for both, already committed and uncommitted files.

Upvotes: 3

Related Questions