SVN:如何维护本地config.blah文件? [英] SVN: How do I maintain my local config.blah file?

查看:75
本文介绍了SVN:如何维护本地config.blah文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SVN服务器上,有一个名为config.conf的文件.我有一个本地版本,称为同一件事(在同一位置). 如何确保我的本地配置不会被覆盖或未签入?

On the SVN server, there is a file called config.conf. I have a local version called the same thing (in the same place). How can I make sure that my local config does not get overwritten, nor checked in?

我在这里时,目录的答案是否有所不同?

While I'm here, is the answer different for a directory?

我正在使用Tortoise SVN,但是命令行答案很酷.

I'm using Tortoise SVN, but command line answers are cool.

谢谢!

[对不起,是否曾经问过这个基本问题...我看了但没找到.]

[Sorry if this basic question has been asked before... I looked but didn't find it.]

推荐答案

如果您将文件命名为相同文件并将其粘贴在同一目录中,SVN将始终认为该文件是存储库的一部分.您的选择是

SVN will always think that that file is part of the repository if you name it the same and stick it in the same directory. Your options are

  • 重命名它(也许将shell脚本写到mv config.conf config.conf.theirs && mv config.conf.mine config.conf,然后运行您的应用)
  • 移动它.也许会向您的应用程序添加一些逻辑,以检查本地用户特定目录中的config.conf,然后在找不到的情况下使用默认的config.conf.
  • Rename it (maybe write a shell script to mv config.conf config.conf.theirs && mv config.conf.mine config.conf and then run your app)
  • Move it. Maybe add some logic to your app that checks for config.conf in a local, user-specific directory and then uses the default config.conf if none are found

这篇关于SVN:如何维护本地config.blah文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆