egg
egg

Reputation: 231

intellij IDE cannot track XML files with version control

I add some xxxxMapper.xml. IDE show that (picture 1):

The new xml files are yellow .

I want to add it to git. But I got that picture 2.

The button “+ Add” is unavailable.

enter image description here

enter image description here

The gitignore file are:

/* !src !pom.xml !.gitignore

global gitignore /user/xxx/.gitignore_global

*~ .DS_Store .idea/

but the sourceTree can track the files

enter image description here

Upvotes: 0

Views: 53

Answers (1)

Dmitrii Smirnov
Dmitrii Smirnov

Reputation: 7528

The files are ignored by the built-in ignore mechanism. Check Settings | Version Control | Ignored Files list, make sure files are specified there nether explicitly, nor by a pattern.

Upvotes: 2

Related Questions