title: How to switch existing Intellij IDEA projects from SVN to Git SVN
body: <p>I currently have existing Intellij IDEA projects that are tied to the SVN repository. I'm thinking of switching these projects to use Git SVN because I find the need to have a local version control system when I'm not connected to the SVN repository.</p>
  
  <p>Since Intellij IDEA doesn't provide the Git SVN bridge, I run the following command from the command line to clone the SVN repository to Git:-</p>
  
  <pre><code>git svn clone --stdlayout --username myuser http://svnrepo/myproject -A authors.txt myproject
  </code></pre>
  
  <p>After cloning the SVN repository, I open the Git-based project using Intellij IDEA. At this point, Intellij IDEA complains about missing version control directories. I found out that Intellij IDEA still remembers the old SVN configuration. Since the project now contains .git directories instead of .svn directories, Intellij IDEA gets confused and it doesn't know how to get connected to any repositories right now.</p>
  
  <p>The only workaround that works for me is to do the following:-</p>
  
  <ul>
  <li>Create a brand new project (empty project) in SVN repository.</li>
  <li>Perform "git svn clone".</li>
  <li>Create the project using Intellij on it.</li>
  <li>At this point, Intellij IDEA detects .git directories and prompts me whether to add newly created files into Git.</li>
  <li>Copy everything from SVN-based project to Git-based project.</li>
  </ul>
  
  <p>That said, I cannot run Git on this Intellij IDEA project on one machine and at the same time use SVN on this Intellij IDEA project on another machine. Both machines must use Git, or else Intellij IDEA will not be able to commit to the version control repository. I'm fine with this and I can use Git in all my machines. However, I'm trying to find a way not to create brand new Git-based projects for all my existing SVN-based projects. This is very tedious because I have quite a few SVN projects that I need to run using Git now.</p>
  
  <p>Is there a better solution for me to switch my SVN projects to Git using Intellij IDEA?</p>
  
  <p>Thanks.</p>