6

I am developing a Django app and it's my first time with Mercurial(using bitbucket).

I have done some commits without adding ".idea" folder from PyCharm to hgignore. Now I have added it to hgignore and want to remove .idea from the central repository but obviously do not want to delete the actual folder locally.

What's the proper way to handle this? I know this is a common thing, but I'm in the learning stage.

Thanks for the help in advance.

Amir Rustamzadeh
  • 4,302
  • 7
  • 35
  • 43

3 Answers3

8

What it sounds like you want is for Mercurial to stop tracking everything under .idea. This should work (command issued in the repository root):

hg forget .idea\*
Joel B Fant
  • 24,406
  • 4
  • 66
  • 67
4

Use hg forget .idea. It's like hg remove, only it doesn't delete the file from your working directory.

Ismail Badawi
  • 36,054
  • 7
  • 85
  • 97
3

hg forget .idea\* should be your solution!

you could read up more on forget / remove here http://www.selenic.com/mercurial/hg.1.html

just for reference you can delete the .idea folder. pycharm will generate it the next time you open up your project files using it.

Eva611
  • 5,964
  • 8
  • 30
  • 38