Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disconnect git for a project in intellij?

Tags:

I'm new in swift to intellij from eclipse. In eclipse, there's just a button disconnect in popup menu selection "team" which can disconnect the project from the version control system like git or svn, and even can delete version control information like files in ".git" dir or ".svn" dir of the project. I can't find the counterpart button of intellij and don't know how to delete the git information. I deleted the ".git" directory of the project, but opened intellij again, it still show that the project is in git and can't be pushed to new git repo.

like image 899
K F Avatar asked Dec 24 '15 02:12

K F


People also ask

How do I disable version control in IntelliJ?

Go to Settings (Preferences on macOS) | Version Control | Directory Mappings, select the mapping(s), click [-] icon or press Delete to remove the mapping or change the association to None .


2 Answers

Select the Project and make VCS "None"

Open the Setting and Click "Version Control then make selected project VCS as None.

like image 183
Yasir Shabbir Choudhary Avatar answered Sep 25 '22 23:09

Yasir Shabbir Choudhary


I guess that this could be a duplicate, you can find at least the first part of your question here

After that you remove VCS, you would be able to remove .git directory without any problem

like image 27
Stefano Saitta Avatar answered Sep 24 '22 23:09

Stefano Saitta