SVN:忽略已经提交的文件 [英] SVN: Ignoring an already committed file

查看:474
本文介绍了SVN:忽略已经提交的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Subversion进行版本控制的设置文件.每个人都有此文件的副本,我需要永远不要提交此副本.但是,就像我说的那样,已经有一个副本受版本控制.我的问题是:如何在不删除所有人文件的情况下从版本控制中删除此文件,然后将其添加到忽略列表中,这样就不会提交?我正在使用linux命令行svn. /p>

I have a settings file that is under version control using subversion. Everybody has their own copy of this file, and I need this not to be ever committed. However, like I said, there is already a copy under version control. My question is: how do I remove this file from version control without deleting everyone's file, then add it to the ignore list so it won't be committed? I'm using linux command line svn.

推荐答案

进行干净签出,svn delete文件并添加忽略.然后提交.其他所有人都必须注意(一次)在下一个svn update上不会删除其本地副本,但是此后,本地文件将保持原状,并被SVN忽略.

Make a clean checkout, svn delete the file and add the ignore. Then commit this. Everyone else will have to take care (once) that their local copy isn't deleted on the next svn update, but after that, the local file would stay undisturbed and ignored by SVN.

这篇关于SVN:忽略已经提交的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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