http://gist.github.com/609762
#!/bin/sh
svn remove log/*
svn commit -m”removing log files”
svn propset svn:ignore “*.log” log/
svn update log/
svn commit -m ‘Ignoring all files in /log/ ending in .log’
svn move config/database.yml config/database.example
svn commit -m ‘Moving database.yml to database.example to provide a template for anyone who checks out the code’
svn propset svn:ignore “database.yml” config/
svn update config/
svn commit -m ‘Ignoring database.yml’
svn remove tmp/*
svn propset svn:ignore “*” tmp/
svn update tmp/
svn commit -m “ignore tmp/ content from now”
svn propset svn:ignore “.htaccess” config/
svn update config/
svn commit -m ‘Ignoring .htaccess’
svn propset svn:ignore “dispatch.fcgi” config/
svn update config/
svn commit -m ‘Ignoring dispatch.fcgi’
Configure SVN for your rails app.
最新推荐文章于 2025-07-26 13:50:55 发布
本文介绍如何使用Subversion (SVN) 忽略特定类型的文件,例如日志文件和配置文件,并演示了如何将现有配置文件移动到示例目录中作为模板,确保团队成员在检出代码时能获得一致的初始配置。
7789

被折叠的 条评论
为什么被折叠?



