-
Notifications
You must be signed in to change notification settings - Fork 27.4k
chore: ignore IntelliJ IDEA module files #5273
Conversation
Ignore IntelliJ IDEA modules files in the git repository
Thanks for the PR!
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
I just signed the CLA as "Tobias Gesellchen" |
Couldn't you just not add them to git file tracking? |
I wouldn't prefer any tool specific config files in a project like Angular. I only found an entry for the |
Not really my call. Was the lack of .iml causing you an issue? aren't those usually under the .idea folder? |
Well, I didn't have any actual issue, but I wanted to save me (and others) from accidentially adding such files to the git repo. By default they are created beside the .idea folder, so that I noticed the untracked file. After some experience of destroying a peer's project structure by pushing my personal project config files, I've become cautious for such details. My impression was that ignoring .iml files would only complete the existing entries, but after you seem to be quite skeptical, I'd like to know what would speak against adding such files to .gitignore? |
Well perhaps I'm just overly cautious? I'm not sure. I'm just a skeptic I Maybe it's a bad precedent to account for all of the IDEs people could be I'm just playing "devil's advocate". It's probably a reasonable commit. On Wed, Dec 4, 2013 at 3:02 PM, Tobias Gesellchen
Ben Lesh |
You might be cautious and I would also prefer a shorter gitignore file, but I also tend to completeness and safety regarding common issues. Visual Studio might still be far away from a common issue for this repo :) |
My 2 Cents: .gitignore already contain specific stuff and that is the job of .gitignore so that adding *.iml doesn't seem like a showstopper for me. If it makes life easier, why not? +1 |
I'm indifferent I suppose. heh. Is there a sideways thumb emoji? 👍 👎 |
So indifferent means no, or what should I do to get it in ;) Maybe we can add *.iml and when there is a strict rule for what's in and what not, we will change .gitignore accordingly. What do you think? Regards, Leif |
I would propose Leif's suggestion to add the change for now and probably changing the .gitignore contents when we have clear rules. |
+1 Alternatively, you can specifiy to have the project file in the parent dir in IntelliJ's project settings/setup. |
02dc2aa
to
fd2d6c0
Compare
cad9560
to
f294244
Compare
e8dc429
to
e83fab9
Compare
4dd5a20
to
998c61c
Compare
What shall we do with this PR? The PR would handle the default, when IntelliJ project files are saved in the project folder, so any manual configuration would also be valid for Eclipse or other IDEs. Since there's already some special stuff in the .gitignore file, I wouldn't expect that the quite popular IntelliJ could be problem. Maybe another option would be some kind of linting. It could check for the presence of IDE project files, but that would only work after a commit/push, which is too late in my point of view. Thanks for your feedback! |
why not also add .xcodeproj and .sln too? but I don't think it's such a big deal to add this, so why not |
Ignore IntelliJ IDEA modules files in the git repository Closes #5273
If this breaks anything, you'd better not get mad at me for it! :c |
Ignore IntelliJ IDEA modules files in the git repository