Should we ignore misc.xml and <projectFolderName> .iml in the Pycharm.idea / folder?

My google search gives me this topic , which leads us to the official Pycharm website here saying that we should STORE everything except workspace.xml , tasks.xml

Although I can see that the misc.xml and <projectFolderName>.iml also contain a local / physical path pointing to a subfolder in my user home in Ubuntu.

So, I got confused and brought it here - should we git ignore these two files?

+6
source share
1 answer

1) <projectFolderName>.iml - By default, Idea editors create <projectFolderName>.iml files that are site specific. To handle this:

Rename the project:

enter image description here enter image description here

Now you have two files in the .idea directory: .name and YOUR_RENAMED_PROJECT.iml both of which are directory and platform independent and can be added to git.

2) misc.xml - TL; DR; ignore him

For PyCharm misc.xml, there may be certain paths for the platform, and may even send more sensitive data .

3) Finally, you need to rename the tool chain and use the same name in the command:

The best way to share project files between a development team is to rename your project interpreter to something that is independent of your file system paths (for example, "Python 2.7" or "My Project: Python 2.7 virtualenv") and then use this name constantly for everyone developers.

You can rename your interpreters to "File | Settings | Project | Project translator" | More details ... | Edit. "

Source from the PyCharm tracker

+1
source

All Articles