Pycharm asks me if I want to add .idea\vcs.xml to Git

Stephen picture Stephen · Jul 19, 2017 · Viewed 19.1k times · Source

When using Pycharm I got a popup out of nowhere asking me if I wanted to add this file to Git, and noting that I could do it manually later if I wanted. What is this file, and why is this recommendation being given to me?

Answer

Saurabh Shrivastava picture Saurabh Shrivastava · Jul 19, 2017

All the project specific settings for project are stored under the .idea folder.

While working, a new file (vcs.xml) was created and hence it gives you the option to add it to Git. The files in the .idea/ should generally not reach Git, and it's usually better to add it to .gitignore file.