Accurev外部,git内部 [英] Accurev externally, git internally

查看:148
本文介绍了Accurev外部,git内部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Accurev作为VCS开展一个项目。由于我对它一点都不熟悉,所以我想知道在内部使用git是否是个好主意 - 这意味着我将在本地使用git,然后执行与Accurev的官方提交。

这是一个好的方法吗?



如果是的话,我当然想要从Accurev版本中排除git。 .acignore看起来像这样就足够了:

  myproject / .git 
myproject / .git / *
myproject / .gitignore

谢谢!

解决方案

您应该可以并排使用git和AccuRev。但是,mignt需要调整.acignore,但是。

从AccuRev帮助文件中:


示例

>

全局指定的简单通配符模式(例如* .doc)与以下任何名称匹配:

docs /chap01.doc

docs / manuals / chap01.doc

docs / widgetproj / src / manuals / usergd / chap01.doc



文档/手册/ chap01.doc
$ b $在docs / .acignore中指定的模式手册/ *。doc匹配以下任何名称: b文档/手册/ chap02.doc



...但不包括这些名称:

文档/手册/ usergd / src / chap01.doc

docs / widgetproj / src / manuals / usergd / chap01.doc



但是,使用**指定递归如手册/ * ** / *。doc或手册/ ** / chap .doc将匹配任何在docs / manuals下的任何目录中出现* .doc或 chap .doc direc保守党。有关使用**的更多信息,请参阅第12页上的忽略模式中的通配符。



I’m working on a project using Accurev as a VCS. Since I’m not at all familiar with it, I’m wondering if it would be a good idea to use git "internally" - meaning I would use git locally, then doing the "official" commits with Accurev.

Would this be an OK approach?

If yes, I would naturally want to exclude git from the Accurev versioning. Is it sufficient to have a .acignore that looks something like this:

myproject/.git
myproject/.git/*
myproject/.gitignore

Thanks!

解决方案

You should be able to use git and AccuRev side-by-side. You mignt need to tune your .acignore, though.
From the AccuRev Help files:

Examples

A simple wild card pattern such as "*.doc" that is specified globally matches any of these names:

docs/chap01.doc
docs/manuals/chap01.doc
docs/widgetproj/src/manuals/usergd/chap01.doc

The pattern manuals/*.doc specified in docs/.acignore matches any of these names:

docs/manuals/chap01.doc
docs/manuals/chap02.doc

... but not these names:

docs/manuals/usergd/src/chap01.doc
docs/widgetproj/src/manuals/usergd/chap01.doc

However, using ** to specify recursion as in manuals/***/*.doc or manuals/**/chap.doc will match any occurrence of *.doc or chap.doc in any directory underneath the docs/manuals directory. See Wildcards in Ignore Patterns on page 12 for more information on using **.

这篇关于Accurev外部,git内部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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