gpt4 book ai didi

git - Perforce 忽略文件语法与 gitignore 语法有何不同?

转载 作者:太空狗 更新时间:2023-10-29 12:46:09 32 4
gpt4 key购买 nike

Perforce 能够实现 .gitignore 文件语法的哪一部分?

P4IGNORE 的 Perforce 文档显示了基本的忽略和取消忽略模式:http://www.perforce.com/perforce/r12.1/manuals/cmdref/env.P4IGNORE.html

据我所知,Perforce 不支持:

# Ignore file.txt, but not subdir/file.txt
/file.txt

# Ignore directories named foo, but not files named foo
foo/

在忽略文件处理上还有其他区别吗?

最佳答案

我有一个类似的问题,然后找到这个 article我了解到 Perforce 确实接受 .gitignore 文件。

In fact, you can specify more than one filename in P4IGNORE. In reality, my P4IGNORE looks like this (this is a new feature in 2015.2):

P4IGNORE=$home/.p4ignore;.gitignore;.p4ignore;

关于git - Perforce 忽略文件语法与 gitignore 语法有何不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18240084/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com