-->

What grails project files should not be added to v

2019-02-24 07:23发布

问题:

(This question has been asked before, but a while back: Suggestions for Grails .gitignore; it was answered for grails 1.0.x)

What files in a Grails 1.3.x project should not be included in version control?

回答1:

See http://grails.org/Checking+Projects+into+SVN - it has a short list of ignores.

I would include .settings/ but I tend to keep .classpath and .project in source control because they change with the project. Then again, perhaps it's better simply to run grails integrate-with --eclipse.



回答2:

.gitignore:

# Maven output directory
target/

# Eclipse Project files
.classpath
.project
.settings/

# OS X generated files
.DS_Store