Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off Intellij auto adding to VCS/Git

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?

like image 578
starscream_disco_party Avatar asked May 23 '17 13:05

starscream_disco_party


People also ask

What is add to VCS in IntelliJ?

Add files to VCS If you have enabled VCS integration for your project, IntelliJ IDEA suggests to add each newly created file under version control (you can change this behavior in the Settings/Preferences dialog Ctrl+Alt+S under Version Control | Confirmation).

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 .

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

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"

like image 146
guilhebl Avatar answered Oct 31 '22 09:10

guilhebl


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?

like image 31
Dmitriy Smirnov Avatar answered Oct 31 '22 09:10

Dmitriy Smirnov