CVS 忽略目录
如何设置忽略 CVS 中的文件夹及其所有子目录?
当它提交我的 \bin
、\obj
或 \TestResult
文件夹中的每个文件时,它变得非常烦人。
在忽略列表中尝试了 *\TestResult
- 无济于事。
How do you set to ignore folders and all its subdirectories in CVS?
It's getting pretty annoying when it commits every file in my \bin
, \obj
or \TestResult
folders.
Tried *\TestResult
in the ignore list - to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在目录中创建一个
.cvsignore
文件。 查看此处了解详细信息在您的情况下
.cvsignore
你的项目根目录看起来像you can create a
.cvsignore
file in your directories. See here for detailsIn your case the
.cvsignore
of your project root would look like我还必须将
.cvsignore
添加到.cvsignore
文件中,因为cvs up
返回? .cvsignore
请注意,我使用的是 1.12.13-MirDebian-9
I also had to add
.cvsignore
into the.cvsignore
file, becausecvs up
returned? .cvsignore
Note that I am using 1.12.13-MirDebian-9
我已经尝试了上面的方法并且它有效,除了一个细节:如果您想忽略某个文件夹,并且您已将此文件夹提交到 CVS 服务器,则无法删除此文件夹并
提交
在 CVS 存储库中删除它。 Eclipse 将忽略您的删除。您必须:与 CVS 同步
,标记为已合并
到所有文件文件被删除后,-
。commit
在 CVS 服务器中删除它们。.cvsignore
文件,使用New - File
,输入.cvsignore
作为文件名,并对其进行编辑以匹配文件名的用户那些你想忽略的人。同步
,以提交
此.cvsignore
。I have tried the way above and it works, except a detail: if you want to ignore a folder, and you have committed this folder to CVS server, you cannot delete this folder and
commit
to delete it in CVS repository. Eclipse will ignore your delete. You have to:synchronize
with CVS,mark as merged
to all files removed,-
before them.commit
to delete them in CVS server..cvsignore
file in this folder, withNew - File
, type.cvsignore
as file name, and edit it to match patrons of file names of those you want to ignore.synchronize
again, tocommit
this.cvsignore
.