DEV Community

Discussion on: Show me your .gitignore

Collapse
 
ghost profile image
Ghost

I like to have two .gitignore, one for me (a global one), and one for the project that I'm working on.

In my global gitignore, named .gitexcludes(github.com/diegoholiveira/dotfiles...), I ignore files that are generated by my own environment, like IDEs files, vagrant files and others.

In my projects, my .gitignore only have entries that are directly about the project: like build files, pyc files and vendor folder, generated files and other.

This helps me to keep things very organized.

Collapse
 
oleksiyrudenko profile image
Oleksiy Rudenko

A really great approach! You must be a good project collaboration mate.
Cheers!