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
target/

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



12 comments:

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

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  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

    ReplyDelete
  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

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

    ReplyDelete
  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

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

    ReplyDelete
  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

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

    ReplyDelete