P4ignore Set
2023年12月21日
对于游戏引擎版本的文件,进行版本控制可能需要 Helix Core 忽略某些文件,例如单个用户设置、缓存等。
设置步骤为:
- 创建ignore.txt,写好ignore内容-保存-上传p4根目录
- 运行bat,并检查是否过滤成功
P4V_设置.ignore
过滤忽略无需同步的文件。
1 新建P4ignore.txt文件并上传至仓库.
P4ignore:展开复制
p4ignore.txt
# directories
*/.git/*
*/.vs/*
*/obj/Development/*
*/obj/Debug/*
*/obj/x64/*
*/Intermediate/*
*/Saved/*
*/DerivedDataCache/*
# files
*.pdb
*.obj
*.response
*.prev
**DebugGame*
*.pch
*.tmp
*.dSYM
*.VC.db
*.opensdf
*.opendb
*.sdf
*.suo
*.log
*.DS_Store
*.ipch
*.vscode/*
*.idea/*
*.sln
*.p4config
*.code-workspace
*.ue4dependencies
*/Log.txt
*.akd
**/Engine/DerivedDataCache/*
**/Engine/Binaries/Win64/**Win64-Debug*
**/Engine/Binaries/Mac/**Mac-Debug*
**/Engine/Plugins/**Win64-Debug*
**/Engine/Plugins/**Mac-Debug*
**/Projects/**Win64-Debug*
**/Projects/**Mac-Debug*
**/Projects/**/.vs/*
**/Projects/**/Binaries/*
**/Projects/**/DerivedDataCache/*
**/Projects/**/Intermediate/*
**/Projects/**/Saved/*
!**/Engine/Binaries/DotNET/*
!**/Engine/Intermediate/**.precompiled
!**/Engine/Intermediate/**.lib
!**/Engine/Intermediate/**.o
!**/Engine/Intermediate/**.obj
!**/Engine/Source/**.sln
!**/Engine/Source/**.vscode/*
!**/Projects/**/Content/**.obj
!Dev-Binaries/**.zip
/Engine/DerivedDataCache/*
/Engine/Binaries/Win64/**Win64-Debug*
/Engine/Binaries/Mac/**Mac-Debug*
/Engine/Plugins/**Win64-Debug*
/Engine/Plugins/**Mac-Debug*
/Projects/**Win64-Debug*
/Projects/**Mac-Debug*
/Projects/**/.vs/*
/Projects/**/Binaries/*
/Projects/**/DerivedDataCache/*
/Projects/**/Intermediate/*
/Projects/**/Saved/*
!/Engine/Binaries/DotNET/*
!/Engine/Intermediate/**.precompiled
!/Engine/Intermediate/**.lib
!/Engine/Intermediate/**.o
!/Engine/Intermediate/**.obj
!/Engine/Source/**.sln
!/Engine/Source/**.vscode/*
!/Projects/**/Content/**.obj
!/Dev-Binaries/**.zip
UE5
# DIRECTORIES
*/UE5_Source_Cahce/*
*/Engine/DerivedDataCache/*
*/Engine/Binaries/Win64/**Win64-Debug*
*/Engine/Binaries/Mac/**Mac-Debug*
*/Engine/Plugins/**Win64-Debug*
*/Engine/Plugins/**Mac-Debug*
*/.git/*
*/.vs/*
*/obj/Development/*
*/obj/Debug/*
*/obj/x64/*
*/Intermediate/*
*/Saved/*
*.vscode/*
*.idea/*
# FILES
*.response
*.prev
**DebugGame*
*.pch
*.tmp
*.dSYM
*.VC.db
*.opensdf
*.opendb
*.sdf
*.suo
*.log
*.DS_Store
*.ipch
*.sln
*.akd
*.pdb
*.obj
*.p4config
*.ue4dependencies
*.code-workspace
*/Log.txt
# ENGINE
!Engine/Binaries/DotNET/*
!Engine/Intermediate/**.precompiled
!Engine/Intermediate/**.obj
!Engine/Intermediate/**.lib
!Engine/Intermediate/**.o
!Engine/Source/**.sln
!Engine/Source/**.vscode/*
# LUGINS
!Engine/Plugins/Marketplace*
!Engine/Plugins/Runtime/HoudiniEngine*
!Engine/Plugins/Runtime/OpenCV*
*/Engine/Plugins/Runtime/**/Binaries/*
*/Engine/Plugins/Runtime/**/Intermediate/*
# PROJECT
*/Games/**Win64-Debug*
*/Games/**Mac-Debug*
*/Games/UE5_Source_Cahce/
*/Games/Project_T/DerivedDataCache/*
*/Games/Project_T/Intermediate/*
*/Games/Project_T/Saved/*
*/Games/Project_T/Binaries/Android/*
*/Games/Project_T/Config/DefaultEditorPerProjectUserSettings.ini
!*/Games/Project_T/Build/IOS/Resources/*
!*/Games/Project_T/Content/**.obj
# PROJECT PLUGINS
*/Games/Project_T/Plugins/**/Binaries/*
*/Games/Project_T/Plugins/**/Intermediate/*
*/Games/Project_T/Plugins/**Win64-Debug*
*/Games/Project_T/Plugins/**Mac-Debug*
!*/Games/Project_T/Plugins/MetaHuman/Intermediate/*
!*/Games/Project_T/Plugins/**.lib*
!*/Games/Project_T/Plugins/**.dll*
!*/Games/Project_T/Plugins/**.pdb*
# ROOT DIRECT
!Default.uprojectdirs
# PROJECT Precompiling
!*/Dev-Binaries/*
!*/LocalBuilds/*
!/Dev-Binaries/**.zip
!/LocalBuilds/**.zip
2.用下面代码创建一个P4ignore.bat , 然后运行.
P4ignore.bat
@echo off
set workdir=%~dp0
set result=%workdir%p4ignore.txt
echo %result%
p4 set P4IGNORE="%result%"
pause
3.在Depot右击打开CMD
4.输入p4 ignores 查询是否启用
p4 ignores