Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to view files ignored by Mercurial

📅 2014-Jan-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

It is sometimes useful to see which files are being ignored in a Mercurial repository. For example, there might be some .hgignore rules that might be getting applied without your full knowledge. Such files will not be tracked or committed.

Seeing the list of ignored files in a local repository is easy:

<code>$ hg status --ignored

Or if you prefer the short version:

<code>$ hg st -i

Tried with: Mercurial 2.0.2 and Ubuntu 12.04 LTS