关于SVN添加无用的受控文件后,取消文件受控的方法

问题:关于SVN添加无用的受控文件后,取消文件受控的方法
答案:右键需要去掉受控的文件,选择TortoiseSVN->Unversion and add to ignore list->去掉控制的文件名。


转自:http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-howto-unversion.html
(以下是关于上面网页的翻译)
Ignore files which are already versioned
忽略SVN受版本控制的文件
If you accidentally added some files which should have been ignored,
如果你不小心添加了一些应该忽略的文件,
how do you get them out of version control without losing them? 
在不丢失文件的前提下,怎么保证文件不受版本控制呢?
Maybe you have your own IDE configuration file which is not part of the project,
有时IDE配置文件并不属于项目的一部分。
but which took you a long time to set up just the way you like it.
仅仅因为你喜欢使用这种方式(拥有这些配置文件的方式),而浪费你很多的时间。
If you have not yet committed the add,
如果你还没有提交。
 then all you have to do is use TortoiseSVN → Undo Add... to undo the add.
那么你所需要做的是TortoiseSVN->Undo Add... 来撤销添加。
You should then add the file(s) to the ignore list so they don't get added again later by mistake.
然后,你需要把这些文件添加到忽略列表(ignore list)。以免你下次再次把它们添加到项目中。
If the files are already in the repository,
如果文件已经存在存储库中,
they have to be deleted from the repository and added to the ignore list.
这些文件必须从资源库中删除,并添加到忽略列表中。
Fortunately TortoiseSVN has a convenient shortcut for doing this. 
幸运的是,TortoiseSVN 为做这些提供了一个方便的快捷方式。
TortoiseSVN → Unversion and add to ignore list will first mark the file/folder for deletion from the repository, keeping the local copy.
TortoiseSVN->Unversion and add to ignore list。该操作首先把文件/文件夹从版本库中删除,并保留本地副本。 
It also adds this item to the ignore list so that it will not be added back into Subversion again by mistake.
该操作同样把文件/文件夹添加到忽略列表中,这样,它们就不会被错误的添加到Subversion中了。
Once this is done you just need to commit the parent folder.
当你完成该操作后,你只需要提交上级文件夹就好了。 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值