My google search give me this thread which leads us to Pycharm official site here saying that we should KEEP all except workspace.xml
, tasks.xml
Though I see that files misc.xml
and <projectFolderName>.iml
also contains local/physical path pointing to a sub folder in my user home in Ubuntu.
So I confused and brought it up here - should we git ignore those two files too?
1) <projectFolderName>.iml
- By default Idea editors produce <projectFolderName>.iml
files which are place specific. To deal with it:
Rename a project:
Now you have two files in .idea dir: .name
and YOUR_RENAMED_PROJECT.iml
both of them are directory and platform independent and could be added to git.
2) misc.xml - TL;DR; ignore it
For PyCharm misc.xml may contain platform specific paths and even could ship more sensitive data.
3) Finally one has to rename a toolchain and use the same name across the team:
The best way to share your project files among a group of developers is to rename your project interpreter into something not dependent on your file system paths (e.g. "Python 2.7" or "My Project: Python 2.7 virtualenv") and then use that name consistently for all the developers.
You can rename your interpreters in "File | Settings | Project | Project Interpreter | | More... | Edit".
Source from PyCharm tracker