Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Tuesday, May 03, 2011

GitIgnore for Eclipse Grails Projects

Since I'm a git newb, I had to recently set up git on my machine and try to figure out the best way to set up the ignore properties. Coming from an SVN background (and ClearCase, but I don't like to talk about that), I started to wonder what I needed to exclude from the commit in an ignore file. By doing searches in multiple areas, including the wonderful collections of gitignores at github, I've come up with what I like to call "The Perfect .gitignore". This means I only have two .gitignore files. One in the root of my project, and the other in my home directory. That's right Git allows a global ignore file! If you know your envirnoment (i.e. - Eclipse in Windows), then you can make sure none of your projects will commit naughty environment code.