IntelliJ is a good developing tool but it will generate a folder called .idea, which contains all your local settings. It is NOT supposed to be pushed to repository. So you need to ignore them by editing your .gitignorre file. Please be noted this is a hidden file, you can do the below within your Git Bash.
(The below not only can be applied to .idea but .setting and .iml files)http://stackoverflow.com/questions/11968531/what-to-gitignore-from-the-idea-folder
vi .gitignore
/target
.idea
*.iml
.classpath
.project
.settings
*.checkstyle
If unfortunately you have already committed those changes do the followings:
$ echo ‘.idea’ >> .gitignore
$ git rm -r –cached .idea
$ git add .gitignore
$ git commit -m ‘(some message stating you added .idea to ignored entries)’
$ git push
Advertisements