I'm trying to upload an Unreal 5 game I've been prototyping to github so that the rest of my team can collaborate on it.
I have github installed, and when I try to create a new repository (located in the SSD where the game is saved) I get the above error. Any ideas on how to get around/fix this?
It must be possible to upload existing projects right?
Note: after saying that error it takes me back to the Create a New Repository window and I am unable to use the Create repository button again.
Unreal Engine generates a lot of files that don't belong in Git (compiled files etc). It might help if you add a
.gitignore
file to the root of your project so that Git filters them out. Here's an example file you could start with:https://github.com/github/gitignore/blob/main/UnrealEngine.gitignore
Another thing you might run into is the files being too "big" for git. You will need to install git
lfs
, or large file system. You can install this from the command line,git lfs install
. I am not sure what app you're using it might have a similar option.You should also create a
.gitattributes
file to handle binary files correctly. Here's an example file to start with: https://github.com/MOZGIII/ue5-gitignore/blob/master/.gitattributesThis should apply to most game dev projects when using git/github to manage source