Ignoring Files in Git
Quick tip on setting up files to be ignored for your system.
1. Execute the command setting the location of your system level ignore file
git config --global core.excludesfile ~/.gitignore
2. Edit the Global Git Ignore File: ~/.gitignore
.DS_Store
*.swp
*.iml
*.ipr
*.iws
.classpath
.gitignore
.project
.settings/
.springBeans/
target/
.classpath
3. Peek into your Global Git configuration ~/.gitconfig
[user]
name = Your Name
email = you@yourdomain.com
[color]
ui = auto
[core]
editor = mate
excludesfile = /Users/youruser/.gitignore
Further Reading – for more config options
From http://gordondickens.com/wordpress/2010/12/06/ignoring-files-in-git/
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)
Tags:






Comments
Zqudlyba Navis replied on Sun, 2011/01/02 - 7:21am
Window ==> Preferences ==> Team ==> Ignored Resources
Gordon Dickens replied on Mon, 2011/01/03 - 2:09pm
Gordon Dickens replied on Mon, 2011/01/03 - 2:12pm
in response to:
Zqudlyba Navis