Monday, June 27, 2016

hg: Untrack file without deleting it

So I have created a maven based Java project using IntelliJ IDEA, and I added all files to my hg repository with this .hgignore file in place:

syntax: glob

Later I learned that I shouln't track one of IDEA's workspace file, so I want to remove from my repository tracking, but I do not want it be deleted. Here is what you should do:

bash> hg forget .idea/workspace.xml
bash> echo '.idea/workspace.xml' >> .hgignore


  1. Nicely well-written article.Keep sharing like this article.
    For sofa renovation visit thesofastore,the provieds best
    Sofa Refurbishing in Mahadevapura,Bangalore

  2. This comment has been removed by the author.

  3. Nicely well-written article. It was an awesome article to read. Complete rich content and fully informative
    For web design & development service contact Multisoft digital technologies, They have
    Web Development in Gulbarga

  4. Hii your blog is looking good.Thanks for sharing this information and keep posting.
    For Astrological solutions contact Shri Durga astro center,They gives
    Best Astrologer in Mysore

  5. Nice blog. Nice explanation with helpful information.
    For sofa repair work contact thesofastore gives
    Sofa Refurbishing in Yediyur,Bangalore

  6. Nice article it helps to know more about Lover marriage specialist astrologer.Thank you for sharing this blog.
    For sofa renovation visit thesofastore,the provieds best Best Sofa Repair Services in Banashankari,Bangalore

  7. Thanks for providing this information. It's very helpful.
    Visit Husband Wife Problem in Melbourne

  8. Great article Eric, this is the first time that I have read your article on feelinkkcom. I use grammarly on my browser to spot grammar mistakes on my article. I must say that the gif images that you used are very eye-catching. Thanx for sharing this article with us. love problem solution astrologer in surat

  9. Thanks for the greatfull post.
    Vashikaran Astrologer In Mysore resolves all problems and gives permanent solutions.