I'm still in the trial period for PhpStorm and I have a question about GIT. How do I keep git from adding/commiting the hidden .idea files? Also is there a universal setting to block this at all times?
This is for PhpStorm 8.0.2 -- 8.0.1 and older will have slightly different settings structure. But in any case: you can always use quick search box in the top left corner to search trough settings.
Ok. I see it and ti was already set to that. I assume if I use the command line outside of PhpStorm it won't have the ignore rule applied to the GIT commands.
You may use: http://wiki.jetbrains.net/intellij/Using_Git_Locally_with_IntelliJ_IDEA .
Ignored files should be setup here: File | Settings (Preferences for Mac OS) | Version control | Ignored files.
Suggestions what files to ignore: https://intellij-support.jetbrains.com/entries/23393067 .
I don't see that option in PhpStorm under Version Control in settings?
I found the documentation on configuring local git ti unuverally ingore certain files.
https://help.github.com/articles/ignoring-files/
This is for PhpStorm 8.0.2 -- 8.0.1 and older will have slightly different settings structure. But in any case: you can always use quick search box in the top left corner to search trough settings.
https://www.jetbrains.com/phpstorm/webhelp/ignored-files.html
Ok. I see it and ti was already set to that. I assume if I use the command line outside of PhpStorm it won't have the ignore rule applied to the GIT commands.
Sure - PHPStorm ignore patters won't affect Git run outside of PHPStorm. You have to set up .gitignore accordingly
The setting in PhpStorm where not working. It may be because I'm use GIT for Windows.
I figured it out I created a global ignore file in my user folder and added:
excludesfile = /users/myUserName/.gitignore_global
Where I told it to ignore:
.idea/
/.idea/
That completely fixed the issue at hand. I had to add the absolute path it wouldn't work with %USERPROFILE% it would just ignore my rules file.
Thank you,
David