Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA thinks part of my project is subversion instead of git, how to fix this?

I have an Android project in IDEA, and added a module for testing. This module is created within the directory of the App module itself.

Since I have done that, IDEA thinks that the files in the 'test' module are under subversion version control. However, I don't know why and how, as there wis no .svn directory, and I didn't do anything. I want to add this directory to my GIT of the whole project, but even though I added the files using the GIT command line tool, IDEA only gives me subversion commands.

When I try to add files using GIT I get a error message:

svn: E155004: Cannot lock working copy '/': permission denied.

I don't really now what to do next, so any help is appreciated!

like image 418
Luuk D. Jansen Avatar asked Dec 10 '13 19:12

Luuk D. Jansen


People also ask

How do I get Git options in IntelliJ?

One way to open the Git tool window is to hover over the quick access button in the bottom left of the IntelliJ IDEA window, and select Git. This will open the Git Log tool window. Alternatively, you can use ⌘9 (macOS), or Alt+9 (Windows/Linux), to open the Git Log tool window.

How do I change Git settings in IntelliJ?

If you need to manually configure IntelliJ IDEA to use Git from WSL, go to the Version Control | Git page of the IDE settings Ctrl+Alt+S , click the Browse icon in the Path to Git executable field and select Git from WSL via the \wsl$ path, for example, \\wsl$\debian\usr\bin\git .

What is subversion in IntelliJ?

Last modified: 04 August 2022. Subversion repository locations are global IntelliJ IDEA properties. It means that the configured repository locations will be available no matter if a project is open or not, which is useful if you need to check out an entire project from Subversion.

How do I disable version control in IntelliJ?

Go to File | Settings | Version Control and click - . This will disable the VCS and list it under Unregistered roots: If you really want to get rid of that Unregistered roots: entry and all of the tracking information, go to your project folder and delete the .. \projectDir\.


1 Answers

Check your project configuration in Settings > Version Control.

This is where your directory/vcs mappings are configured. Remove any SVN mapping that could exists, and make sure that the whole project is mapped to Git. BTW, I don't know how this could have happened.

like image 82
Guillaume Darmont Avatar answered Oct 20 '22 20:10

Guillaume Darmont