Thursday, April 26, 2012

Adding a Grails 2.0* application to Git

This is a quick note to remind me what my .gitignore file looks like for Grails 2.* applications:


*.iws
*Db.properties
*Db.script
.settings
.classpath
.project
eclipse
stacktrace.log
target
target-eclipse
/plugins
/web-app/plugins
/web-app/WEB-INF/classes
web-app/WEB-INF/tld/c.tld
web-app/WEB-INF/tld/fmt.tld


I found this list on Heroku and added the eclipse-specific target-eclipse.

To add to git:



Jupiter:slink bendavies$ Jupiter:slink bendavies$ git init
Initialized empty Git repository in /Volumes/Data/users/bendavies/Documents/Projects/grails/slink/.git/

Jupiter:slink bendavies$ git add .
Jupiter:slink bendavies$ git commit -m init

[master (root-commit) a212627] init
 62 files changed, 2847 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 application.properties
 create mode 100644 grails-app/conf/ApplicationResources.groovy
...


1 comment:

  1. This page deliver important info regarding web 2.0. I learn new things regarding Web 2.0 from this post. Thanks! custom web apps development

    ReplyDelete