码迷,mamicode.com
首页 > 其他好文 > 详细

Ignore files which are already versioned

时间:2014-09-26 18:36:28      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:io   os   ar   for   sp   art   on   c   ad   

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, 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. You should then add the file(s) to the ignore list so they don‘t get added again later by mistake.

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 → Unversion and add to ignore list will first mark the file/folder for deletion from the repository, keeping the local copy. It also adds this item to the ignore list so that it will not be added back into Subversion again by mistake. Once this is done you just need to commit the parent folder. 

Ignore files which are already versioned

标签:io   os   ar   for   sp   art   on   c   ad   

原文地址:http://www.cnblogs.com/chongxin/p/3994934.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!