简体   繁体   中英

IntelliJ with SVN doesn't honour *.iws files in my Version Control ignored files list when I commit changes

I would like to individually, locally exclude IntelliJ .iws files from my Subversion changelist however for some reason the settings I've configured to ignore files in IntelliJ don't seem to be applied as I'd expect them to be.

Is it possible to have my own ignored files in my own local version of the project and if so, can you explain why after configuring a host of files in IntelliJ to ignore my project still wants to commit modified files?

Existing Configuration: As per the answer here on the question 'IntelliJ and svn:ignore' I configured my local ignored files in my project by going to the following locations in IntelliJ

Settings | Version Control | Ignored Files

However as I mentioned, still end up with these files in my modified files list on each commit.


I use Maven to build my project/modules and IntelliJ version 12

If the .iws file is blue, then there is no svn:ignore configured on it and that is why IntelliJ thinks that it will need to go on changelists.

You need to be able to right-click on the .iws file, and ignore it like this:

(click) `Subversion` -> `Ignore` -> `*.iws`

But the trouble is that you have checked in the file once already, and the ignore option isnt available, so you can fix this as follows.

Method 1:

  • back up your .iws file
  • make sure you have TortoiseSVN integration enabled with explorer
  • in explorer, right click the iws file and choose: TortoiseSVN -> Unversion and add to ignore list
  • commit via TortoiseSVN

Method 2:

  • backup your .iws file
  • delete it in intellij (confirm to delete from svn, it goes red and into a changelist)
  • commit the change via IntelliJ (.iws file got deleted!)
  • restore the .iws file
  • now, this time DON'T add it to subversion - choose ignore it instead.

You want to see (finally) that the .iws file goes grey in the project pane (this means it is successfully set with svn:ignore) and then lastly you can ignore it in intellij config so you wont see it.

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM