How to run a project in Unreal Engine for github
You should ignore any binaries (like the game's .exe file). Below is a more comprehensive list directly from Unreal Engine:
Here is a typical folder structure for a code based project. Files and are in bold, the rest can (and should) be safely ignored:
• Binaries *
• Build - any custom build scripts or other build-related dependencies you may have
• Config - default configuration files for your packaged project
• Content - * maps, content files and assets ***
• DerivedDataCache - temporary data files generated when the game starts
• Intermediate - temporary files generated when compiling the code
• Saved - local log and configuration files, screenshots, autosaves, etc. which are generated every time you start the game or the Editor
• Source - the source code of your project
• If your project uses third-party libraries, i.e. when integrating some software components or hardware devices, you may have DLLs, LIBs, or other files in the Binaries directory that should be included if your project depends on them . However, do not include DLLs and debug files (.pdb) that are generated for the project itself, i.e. MyProject.dll and MyProject.pdb.
source to share