乌龟-是否可以在提交之前忽略新文件夹? [英] Tortoise - is it possible to ignore new folder before committing it?
问题描述
我刚刚在我的.NET解决方案中添加了一个类库项目.构建它时,它创建了bin
和obj
文件夹,我希望将它们从版本控制中排除.
I just added a class library project to my .NET solution. When I built it, it created the bin
and obj
folders, which I want to exclude from version control.
但是,Tortoise不允许我在第一次提交之前忽略这些文件夹.它给出以下消息.
However, Tortoise won't let me ignore the folders before the first commit. It gives the following message.
无法将bin添加到忽略列表!
Cannot add bin to the ignore list!
我必须检查整个批次,然后为两个文件夹选择Delete and add to ignore list
.
I have to check the whole lot in, and then choose Delete and add to ignore list
for the two folders.
我该如何阻止它们被完全签入,并确保Tortoise知道忽略它们?
How do I prevent them being checked in at all, and ensure Tortoise knows to ignore them?
推荐答案
这是因为尚未添加其父目录.首先在新项目目录上执行添加",然后在显示对话框中显示要添加的文件列表时,取消选中bin
和obj
.添加项目目录后,您便可以忽略它们.
It's because you haven't yet added their parent directories. Do 'add' on the new project directory first, and then when it gives you the dialog showing the list of files to add, untick bin
and obj
. You can then ignore them once the project directory has been added.
您也可以将bin
和obj
添加到全局忽略列表(在TortoiseSVN首选项中),尽管这将忽略所有项目中
You could also add bin
and obj
to your global ignore list (in the TortoiseSVN prefs) though that will ignore any instances of bin
across all your projects.
这篇关于乌龟-是否可以在提交之前忽略新文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!