Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial ignore the ".idea" folder form PyCharm?

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.

like image 901
Amir Rustamzadeh Avatar asked Aug 31 '11 16:08

Amir Rustamzadeh


2 Answers

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\*
like image 92
Joel B Fant Avatar answered Nov 07 '22 20:11

Joel B Fant


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

like image 4
Ismail Badawi Avatar answered Nov 07 '22 18:11

Ismail Badawi