Hey, I’m trying to get a git repository going for my project.
I have a visual studio solution with both the UE5 built from source and my Project in it.
But all the built in git related functionality seem to be tied to the engine only, even though I’m opening my project’s solution, not the engine solution.
How do I change it to make and manage a repo for the game project instead?
Edit: Note, I only want to manage the sourcecode through git, not the entire project.
To keep your Git repository focused on your project files and not the Unreal Engine code, it is recommended to create your Unreal Engine project in a location outside of the Unreal Engine installation folder. For example, you can create your project in your Documents folder. Once you have created your project, initialize a Git repository from that folder to track your project files and not the engine code
Hi, thanks for the tip, but the game project already is in it’s own folder.
However, I was able to create a new github repository without changing my project solution at all. For some reason I was convinced that would just set up a new blank solution.
However, I’m having some issues with the initial commit. I’ve added all folders except my source code folder to my .gitignore file. (I have a seperate solution for the rest of my project), yet when I push it tries to write ALL files to the repository, despite not detecting any “changes”. This fails due to to some files exceeding the supported size.
Edit: Figured it out. When you make the repository it does an automatic commit of all the project files before you get to edit the .gitignore yourself.
Not sure how to undo it without it deleting your local files.