In .gitignore (docs), *.suo
is matched the same way as in a unix shell, which means, it doesn’t match .suo
. This is probably related to the convention on unix that files starting with periods are special and ignored in most cases. So, you could just remove the *
, and use .suo
or you could copy my .gitignore, which handles any project with this structure nicely (ignoring the Mac, since I haven’t tried running UE4 on my Mac yet).
# Unreal Engine
/*/Binaries/
/*/Build/
/*/DerivedDataCache/
/*/Intermediate/
/*/Saved/
# Starter Content
/*/Content/StarterContent/
# Visual Studio
/*/*.sln
/*/.vs/
/*/*.VC.db
/*/*.VC.VC.opendb
Note, having /
at the beginning prevents directories like /BuildingEscape/Content/Intermediate/Chair.uasset
from being ignored. Note, this could be part of a convention where assets that are being worked on by artists are initially in the intermediate directory before being finalized for use in the game, though using another name would likely be better. In any case, being defensive in the .gitignore doesn’t cost much, so I prefer to match things more precisely.