Skip to content

Ignoring directories and files generated from IDEs when committing

eamonnmag edited this page Dec 14, 2010 · 1 revision

Create a globally accessible file for Git to access via this command: git config --global core.excludesfile ~/.gitignore_global

Then, add the following lines (or modify to ignore files created by Eclipse for instance) and save. Git will then ignore the files on commit. You may need to add the -a option when committing, so git commit -a -m "my commit message"


#Ignored IDE files
*.iml
*.iws
*.ipr
*.log
*.sup

#Ignored Build Directories
target/

#OS generate files
.DS_Store?
Thumbs.db
Icon?
Clone this wiki locally