忽略 Perforce 文件夹差异中的文件夹
我正在将 Perforce 用于 .NET 项目。
我尚未在存储库中添加 bin 和 obj 文件夹(在项目构建时创建)。
当我启动工作区和存储库之间的文件夹差异时,它显示 bin 和 obj 文件夹。
我想忽略 perforce 文件夹差异工具中的 bin 和 obj 文件夹。
如何做到这一点?
I am using Perforce for a .NET project.
I have not added bin and obj folders (created when the project builds) in the repository.
When I launch the Folder difference between Workspace and Repository, it shows the bin and obj folders.
I want to ignore the bin and obj folders from the perforce Folder Diff tool.
How to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您始终可以将排除项添加到工作区视图中,以防止考虑 bin 和 obj 目录。顺便说一句,我假设您正在使用 P4V 的协调离线工作工具。
You can always add exclusions to your workspace view, to prevent the bin and obj directories from being considered. I assume you're using P4V's Reconcile Offline Work tool, by the way.
您可以这样做:
如果您想将其应用于所有工作区,还有一个解决方案。 (仅举个例子)
You can do it whit this:
There's also a solution if you like to apply this to all workspaces. (Just an example)
您可以使用 P4IGNORE。在项目目录中创建一个文件
p4ignore
,将 P4IGNORE 变量指向它,并让该文件具有以下内容:现在
p4 reconcile -n
或p4 status< /code> 忽略 bin 和 obj。协调提供服务器和工作区之间差异的状态。它比 diff 更适合这里。
更多详细信息请参见:https://www.perforce.com/ perforce/r15.2/manuals/cmdref/P4IGNORE.html
You could use P4IGNORE. Create a file
p4ignore
in your project directory, point the P4IGNORE variable to it and let the file have the following content:Now
p4 reconcile -n
orp4 status
ignore bin and obj. Reconcile gives the status on diffs between the server and the workspace. It is more suited than diff here.More details are here: https://www.perforce.com/perforce/r15.2/manuals/cmdref/P4IGNORE.html