Remove file from Version Control in IntelliJ IDEA

Viewed 51477

I'm using IntelliJ IDEA Community Edition 2016.1. I've put my project under Git, hosted it on GitHub.

When I first hit that Share Project on GitHub button, every single file was selected to be put under version control.

Now I want to exclude the module IML file from version control. Obliviously, I want to keep it on my hard disk. Unfortunately, I cannot find a way to do this. How do I achieve this?

I tried to delete it from the web interface, but I'm getting some fatal errors while pulling/pushing.

3 Answers

for subversion:

  • go to file properties context menu > copy path
  • open terminal use "svn rm --keep-local" to remove

    svn rm --keep-local /aa/bb/cc/myfile.txt

Related