SRombauts
(SRombauts)
November 7, 2017, 8:25pm
22
Hi, just an update with my finding on current master with upcoming UE 4.19.
-exclude=Dingo does nothing for me, nor -exclude=Switch, and -exclude=Mac -exclude=Linux are already the defaults, so here is the command I am using:
Setup.bat -exclude=WinRT -exclude=Linux32 -exclude=osx32 -exclude=Android -exclude=HTML5 -exclude=TVOS -exclude=IOS -exclude=GoogleVR -exclude=GoogleTest -exclude=LeapMotion
This by itself reduce the download of more than 1.6GB
Using the above “.gitdepsignore” you can skip some 1.6GB more.
So, coming from:
Setup.bat
Checking dependencies (excluding Mac, Linux)...
Updating dependencies: 0% (1/31957), 1.9/**5559.8** MiB
Combining those two get you to:
Setup.bat -exclude=WinRT -exclude=Linux32 -exclude=osx32 -exclude=Android -exclude=HTML5 -exclude=TVOS -exclude=IOS -exclude=GoogleVR -exclude=GoogleTest -exclude=LeapMotion
Checking dependencies (excluding Mac, Linux, WinRT, Linux32, osx32, Android, HTML5, TVOS, IOS, GoogleVR, GoogleTest, LeapMotion)...
Updating dependencies: 0% (1/19936), 1.9/**2216.9** MiB
3 Likes
RSN4D
(RSN4D)
September 25, 2022, 1:47am
23
This is super useful!
Is there maybe a list of exclude/include options for current 5.0/5.1 branch?
2 Likes
Noob question, what’s the GitDependencies program mentioned here?
zz2108828
(zz2108828)
September 29, 2023, 7:14pm
25
The way to save you disk storage.
Try to read Commit.gitdeps.xml file.
This file is about what dependencies you will download.And exclude option string is related to File Name in it.
The code is in here
These options work well in UE5.31
–exclude=osx64 --exclude=osx32 --exclude=TVOS --exclude=Mac --exclude=mac-arm64 --exclude=WinRT --exclude=Linux --exclude=Linux32 --exclude=Linux64 --exclude=Unix --exclude=OpenVR --exclude=GoogleOboe --exclude=GooglePlay --exclude=GoogleGameSDK
–exclude=Documentation --exclude=Samples --exclude=Templates
You can also add .gitdepsignore to root folder to precise deps control.
Engine/Plugins/Runtime/OpenXR
If you don’t need to use git clean -fdx command,delete .git/ue-gitdeps folder to remove download cache file or use –no-cache option to avoid cache.
The code is in this commit .
2 Likes