Grails and .gitigore

I am just starting out with grails development and was wondering about which files should be ignored within the .gitignore file. Up until now my .gitignore looks like this:

*.iws
*Db.properties
*Db.script
.settings
.link_to_grails_plugins
stacktrace.log
/*.zip
/plugin.xml
/*.log
/*DB.*
/cobertura.ser
.DS_Store
/target/
/out/
/web-app/plugins
/web-app/WEB-INF/classes#

I am currently using STS from springsource as my IDE. The only to items i cannot figure out are the “.classpath” file and the “target-eclipse” directory. Should I place these two items in the .gitignore file too?

  • Git checkout does not change anything
  • Trigger.io .gitignore
  • bad numeric config value when using git clone
  • git push says forbidden
  • How do you find who merged a git commit into a branch?
  • what is the authoritative config path for a git submodule
  • Perhaps someone can help my out with this…

    Thanks

  • git on Mac: replace Apple XCode CLI git with symbolic link to latest git install?
  • What causes git push to fail all of a sudden with “User was holding a relation lock for too long”?
  • Git avoiding “merge branch master”
  • Git pull command from different user
  • Branches in git merge: relation with the current branch, and whether they are modified by git merge?
  • Need help loading a git-completion.bash file
  • 2 Solutions collect form web for “Grails and .gitigore”

    “target-eclipse” and “target”(if you’re running from console) should be ignored. It’s where the compiled classes sit.

    I’d also recommend ignoring ‘.classpath’ since you can generate it using grails integrate-with --eclipse but it’s a big discussion whether you should or not

    Check out Grails.gitignore, part of a collection of lots of gitignore files for various environments.

    Git Baby is a git and github fan, let's start git clone.