English 中文(简体)
如何将一个项目控制在源头上,但忽略敏感的信息
原标题:How to check a project into source control but omit sensitive information

我有一个论坛,现在我一直在发展。 用户无情地要求开放源头。 我已决定利用谷歌项目主机这样做。 我正在利用AnkhSvn与视觉演播室联系,与Google项目Svn存放处连接。

我很新,可以提供控制以及公开来源,我很想知道,我如何在我的解决方案中检查,同时排除某些事情。 例如,我的网页.config包含一个数据库链接,我的认证方法含有密码洗衣和盐类功能。 我不想让任何人看到这一敏感信息。 是否有办法在源控制方面找到解决办法,但排除了几件事情,以便我在计算机上的工作拷贝中存在,而不是在源头控制中的边远拷贝中存在?

任何见解都是有益的。 谢谢!

最佳回答

Put placeholders for your sensitive information in the sources, and adapt your build process in order to replace those placeholders with effective values during the build. These effective values could come from a properties file or something like this, and you could put an example properties file with fake values and documentation on each of the property in source control.

问题回答

暂无回答




相关问题
Tracking Versions, Builds, Revisions, with TortiseSVN

I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

How to handle different csproj [closed]

I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...

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 ...

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 ...

热门标签