Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 SVN 存储库中包含我的项目文件和其他配置文件。但不希望将更改提交回 repo。那么有没有办法在服务器/存储库上设置文件。结束,以便在签出时会自动忽略它们?
解决这个问题的常用方法是不要将真正的配置文件放在存储库中。而不是拥有
config/whatever.cfg
在您的存储库中,存储
config/whatever.cfg.example
然后在您签出存储库并为您的本地环境设置它时手动复制config/whatever.cfg.example到。config/whatever.cfg