IntelliJ-2016.3.4 push silently configuration files to git master branch

已回答

Hello,

I've just join a Large Java project and installed IntelliJ 2016.3.4 Community Edition on Windows 7 Enterprise to work on it.

I've imported project files as a Maven Project and linked the project to the git repository by specifying the repository url (the master branch) and SSH key. Til then everything's fine.

I've configured IntelliJ with personnal settings and begin to check project files. I've NERVER performed ANY COMMIT or PUSH operation.

Strangely at the end of the day thoses stranges commits appeared in the Git Tree:

As you can see, there are six (6!!) commits with my id of IntelliJ configuration files.... on the master branch of project !! The thing is I'VE NEVER ordered thoses commits in IntelliJ in any way !!! Configuration files do not even appear in the changed file list.

I've search the documentation for clues. There are informations on "Silent operations", but nothing that can be interpreted as pushing silent to VCS.

Why IntelliJ does this ?

Is there anyway to configure Intellij to stop those silent unwanted and weird activities ?

Thanks for ideas,

JN Gerbaux

0

Commits seem to include IDEA configuration files.

I think you accidently configured Settings repository feature to save settings in your project.

Please go to Settings - Tool - Settings repository and check

0

Just starting IntelliJ cause a new merge commit from Master to develop :-((((((

I went to Settings - Tool - Settings repository The repository configured here is the same as the one I've defined for the project (File - Setting Repository).... I found this really not smart: Mixing project files and IDE configuration to the same repository lead to a real mess. :-(

The Auto Sync check box is selected. Maybe me I've selected it, I don't remember. Maybe a warning about what this select box is really doing (Silent push to VCS of configuration) would be great.

In fact maybe the term "Settings repository" is not clear: Does it mean the repository where Intellij settings are kept OR the repository where the project is stored. I understand this as the second choice. Am I wrong ?

 

Anyway thanks for the quick answer.

 JN Gerbaux

 

0

Settings repository is a place where IDE syncs its settings. It covers general IDE settings.

Repository for your actual project is different, mapping for it are configured in Settings - Version control

0

Ok Thanks for clearing this point: It's obviously the origin of the mess.

Trying to get it work with out the Settings repository defined (as I don't want my settings to be saved). I'm gonna check this.

Regards

JN Gerbaux

 

0

请先登录再写评论。