Unreal Materials are preventing Git push

Hello! I’m most of the way through the Unreal C++ developer class, and I’ve hit the section on refactoring. All the code is fine, but I’m trying to merge to my Github, and the following errors appear:

Remote: error: File Content/Models/Materials/greenstone/T_Green_Stone_N.uasset is 103.11 MB; this exceeds GitHub's file size limit of 100.00 MB        
Remote: error: File Content/Models/Materials/stone/T_Stone_Block_BC.uasset is 395.83 MB; this exceeds GitHub's file size limit of 100.00 MB        
Remote: error: File Content/Models/Materials/stone/T_Stone_Block_N.uasset is 380.95 MB; this exceeds GitHub's file size limit of 100.00 MB 

Now, obviously the issue is the size of the files in my materials. I’ve tried updating the .gitignore provided in the lecture to include that file type:

#also materials
*.uasset

Am I doing the .gitignore format wrong? How do I make sure the repository can accept my unreal projects?

Thank you in advance!

Full Gitignore:

# Visual Studio 2015 user specific files
.vs/

# Visual Studio 2015 database file
*.VC.db

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
*.ipa

# These project files can be generated by the engine
*.xcodeproj
*.xcworkspace
*.sln
*.suo
*.opensdf
*.sdf
*.VC.db
*.VC.opendb

#also materials
*.uasset

# Precompiled Assets
SourceArt/**/*.png
SourceArt/**/*.tga

# Binary Files
Binaries/*
Plugins/*/Binaries/*

# Builds
Build/*

# Whitelist PakBlacklist-<BuildConfiguration>.txt files
!Build/*/
Build/*/**
!Build/*/PakBlacklist*.txt

# Don't ignore icon files in Build
!Build/**/*.ico

# Built data for maps
*_BuiltData.uasset

# Configuration files generated by the Editor
Saved/*

# Compiled source files for the engine to use
Intermediate/*
Plugins/*/Intermediate/*

# Cache files for the editor to use
DerivedDataCache/*

# Starter Content Ignored

Content/StarterContent/*

# VSCode Files
/.vscode/*
BuildingEscape.code-workspace

I suggest you look into git LFS

Thanks! I was hoping to just find a way to leave them alone, and this works just as well!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms