Change Intellij source control integration
I use both Mercurial (hg) and git and now switched to WebStorm for Web development and Android Studio for Android. When you want to enable source code integration Intellij asks you which version control system to use (wonder why it does not try to look recursively in parent folders for any .hg or .git folder)
Remove source code integration
- Go to
Settings
(orPreferences
on Mac) then chooseVersion Control
and delete the offending line - typically there is only one - in the mapping list using Delete or the"-"
button - In a terminal or file explorer remove the incorrect
.git
or.hg
folder that intellij might have created (don't delete the correct one if there was one before)
Then you can enable source control integration again using
VCS|Enable Source Control Integration
... and pick the correct version control system!