Reputation: 376
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
Reputation: 6044
You want to become aquainted with
hg forget FILENAME
It works for both, already committed and uncommitted files.
Upvotes: 3