Ignoring changes in specific file from versioning

I have a config file in my project, it contains some private information (like logins and passwords). This file exists in VCS and it has some sample values filled in. But to test my project on my machine I have to insert real values. So I want IDE not to track any changes in that file. How can I do that? As far as I understood, Project Setting -> Version Control -> Ignored files is being used to ignore files that doesn't exist at VCS at all, like logs, but that's not my case.
I'm using IDEA 9.
Thanks.

3 comments
Comment actions Permalink

I have a similar problem - a project file that's in VCS, but I need to keep my own custom version, unaffected by changes to the VCS version.

0
Comment actions Permalink

I wish I knew a better solution, but I usually have an extra change list "nocommit" to which I move such files.

On 13.02.2010 21:57, Yuri Stuken wrote:

I have a config file in my project, it contains some private information (like logins and passwords). This file exists in VCS and it has some sample values filled in. But to test my project on my machine I have to insert real values. So I want IDE not to track any changes in that file. How can I do that? As far as I understood, Project Setting ->  Version Control ->  Ignored files is being used to ignore files that doesn't exist at VCS at all, like logs, but that's not my case.
I'm using IDEA 9.
Thanks.

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5256672#5256672


0
Comment actions Permalink

On 2/16/2010 12:48 PM, Stephen Friedrich wrote:

I wish I knew a better solution, but I usually have an extra change list
"nocommit" to which I move such files.

>

On 13.02.2010 21:57, Yuri Stuken wrote:

>> I have a config file in my project, it contains some private
>> information (like logins and passwords). This file exists in VCS and
>> it has some sample values filled in. But to test my project on my
>> machine I have to insert real values. So I want IDE not to track any
>> changes in that file. How can I do that? As far as I understood,
>> Project Setting -> Version Control -> Ignored files is being used to
>> ignore files that doesn't exist at VCS at all, like logs, but that's
>> not my case.
>> I'm using IDEA 9.
>> Thanks.

Most projects I work on have a "foo.properties" file which can have its
values overridden in the "foo.user.properties" file. foo.properties
contains the sample values, and foo.user.properties can be copied from
and then modified.

I also use the a change list called "Never commit".  especially for
iml/ipr files.  It is unfortunate that committing those files cause such
huge problems, because our libraries settings tend to get out of date.

0

Please sign in to leave a comment.