7

How to choose which folders and files from the project to import into Subversion? When I do CVS - Import into version control - Import into Subversion, it simply imports the whole chosen folder. What if I don't want to import .idea folder and project-name.iml file for example? Is there a way to choose what to import?

another-programmer
  • 841
  • 13
  • 37
  • 1
    Maybe you should ignore those files/directory in SVN. See http://stackoverflow.com/questions/86049/how-do-i-ignore-files-in-subversion – Piotr Chowaniec Oct 28 '15 at 10:00

3 Answers3

3

Finally I found the solution. I should've just do "Share directory" on project folder. And then I was able to select, what files/directories to ignore and what to commit.

another-programmer
  • 841
  • 13
  • 37
1

To assign a version control system to the project root:

VCS -> Enable Version Control Integration or press Alt+Back Quote, and select Enable Version Control Integration....

In the Enable Version Control Integration dialog box that opens, select a version control system from the drop-down list that you want to associate with your project root.

From There your project will be associated with the version control system you want to use. You can the right click on the directories you do want to include in VCS and navigate to the Version control system. And then Add to VCS.

For example: Subversion -> Add to VCS or Ctrl + ALT + A

penguin
  • 724
  • 5
  • 11
0

Even with the latest version of Intellij 2017, this is not a straight forward process to add a new project to Subversion.

As explained by 'another-programmer' we need to first 'Share Directory' which is new project directory, by either using or creating a directory in subversion. Then you should see the project files/directories turning green which means ready to check-in. You can choose which files/dirs to check-in to your new project.

getSantsoh
  • 137
  • 1
  • 2
  • 7