Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to view files ignored by Mercurial

📅 2014-Jan-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ hgignore, mercurial ⬩ 📚 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
</code>

Or if you prefer the short version:

<code>$ hg st -i
</code>

Tried with: Mercurial 2.0.2 and Ubuntu 12.04 LTS


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧