Webdevelopment

PhpStorm global GIT ignore steps

Steps to exclude .idea folder globally in phpstorm:
Create this file:
C:\Users\Bas\gitignore_global.txt

Add this contents:

.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.idea
.idea/*

Now in phpstorm open the terminal panel (command line shell) and type:

git config --global core.excludesfile c:\Users\Bas\gitignore_global.txt

Next restart phpstorm. Now if you clone a new project it will never bother you about the .idea folder.