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.
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 .
Open the Setting and Click "Version Control then make selected project VCS as None.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With