Turn off Intellij auto adding to VCS/Git

Intellij IdeaVersion Control

Intellij Idea Problem Overview


I've accidentally turned on automatic addition of new files into Git and clicked 'Remember my decision, don't ask again' (or whatever the option actually is) and now I'm unable to change the selection in Preferences |> Version Control |> Confirmation, those options are greyed out. Is there a way to disable this again?

Intellij Idea Solutions


Solution 1 - Intellij Idea

On Ubuntu 16.04 - Go to:

File -> Settings -> Version Control -> Confirmation -> When Files are created

Here you can configure how IDEA behaves for when a file is added or deleted (and other scenarios), options:

  • silently adds file to Git or display popup with options or if it should do nothing

select option: "Do Not Add"

Solution 2 - Intellij Idea

Preferences |> Version Control |> Confirmation is the only place to configure this behavior.

This is a common functionality, not only for git. I have never seen it disabled. Does it happen for all controls in the Confirmation node? What about other options under Version control? Doesn't IDE restart help?

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionstarscream_disco_partyView Question on Stackoverflow
Solution 1 - Intellij IdeaguilheblView Answer on Stackoverflow
Solution 2 - Intellij IdeaDmitriy SmirnovView Answer on Stackoverflow