Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I commit my `.idea/` folder? [duplicate]

Tags:

Should I commit my idea folder in git and in remote version controls like Github? Is it a good practice?

like image 563
Trt Trt Avatar asked Aug 01 '15 17:08

Trt Trt


People also ask

Should you commit idea folder?

You shouldn't ignore the idea folder. you're supposed to commit almost all of it to the repo.

Should you ignore idea folder?

idea folder should be ignored, and if that's the case, it would automatically create a . gitignore file with the line . idea/ in it. But it didn't, so I assumed that I shouldn't ignore the .

Can I delete idea folder?

After you enter the desired Idea Folder, click on the trash icon on the upper right corner of the Idea Folder box. Note: By deleting the Idea Folder you will also delete all ideas in Idea Folder.

Should .idea folder be checked?

According to that page, you should check in all files in the . idea directory except: workspace. xml.


1 Answers

I wouldn't commit any specific IDE configuration into the repository.

2 important reasons are:

  1. IDE configuration almost always involves absolute paths in disk, where different users may not have the same...

  2. You don't want to constraint all users to use the same IDE config...

like image 148
Daniel Conde Marin Avatar answered Sep 20 '22 20:09

Daniel Conde Marin