English 中文(简体)
SVN 私人档案
原标题:SVN Private File
  • 时间:2009-12-21 12:52:34
  •  标签:
  • svn

我通过利用一个公共避风港来开放源头。 问题在于,该项目包含一些组合文件,而我却将某些价值保留在私人手中。 如何处理这一问题?

理想的情况是,我能够进口修订,而不必用每刻都被剥夺的私人数据档案取代档案。

最佳回答

维持两个配置档案:

  • One named, say, config.php
  • Another named config.dist.php

<代码>config.php是贵国的活环境档案,你用私人数据、途径和方式储存其运行时间配置。

config.dist.php> is the same file but withail or dummy formation context.

每当你的项目有一个新的配置环境时,就在你的生活条码文档中测试,然后将其复制到.dist文档中,使其具有 du价值。

规定你的版本控制权,以忽略<代码>config.php。

这样,你永远不会在你的存放处有私人数据,但是,一些检查项目的人都有一个不实的配置文件来开脱。

问题回答

用户专用配置文件不应成为全球测地系统项目来源的一部分。 如果你想要对其进行控制,就将其保留在一个单独的私人存放处。





相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签