Space required for installing UE from source

How much space is required to install UE from source? I followed this guide and this is my UE folder:

I was wondering if I did something wrong because 300GB+ seems to be a lot.

Lol, share some Unreal Engine with the rest of us! I think you must have downloaded more versions of the engine than necessary. Can you send a screenshot of the root folder structure?

1 Like

I can’t, 300GB of secrets xD! Joking aside this is the root folder:

I’ve just checked the “Engine” (70GB), “FeaturesPack” (1.7MB), “Samples” (646MB) and “Templates” (3.7GB) folder size. The problem is the .git folder size, it’s 242GB

Git isn’t required for the engine source to compile and work. If you need to save space you can delete the .git folder.

The only reason to keep git is if you need to pull new engine updates, or make changes to the engine source and commit them to your own fork.

If you don’t modify engine source at all, you don’t even need git to update its version. Just download newer versions in zip format, replace the one you have, re-run Setup, GenerateProjectFiles, and re-do the engine association in dependent projects.

If you don’t know, you can still regenerate the .git folder after deleting it anyways.
I think the following commands should do the trick to restore .git folder :

git init
git remote add origin https://github.com/EpicGames/UnrealEngine.git
git fetch
git reset origin/5.2  #<-- target the version installed
1 Like

After noting that the problem was .git folder, I was thinking about removing it as you suggested. I need to modify the engine source so I will follow your last advice. Thank you for your response!

Fantastic! Glad you got it resolved! :slight_smile: