https://answers.unrealengine.com/questions/16787/how-to-setup-git-for-an-ue4-project.html
/Binaries /DerivedDataCache /Intermediate /Saved
As a general rule, you should check in all files that are required to make a successful build of your projectand cannot be generated from other files. If you or someone else clones your project, they must have everything that is needed for the project - not more not less. Files that are not needed for your project or that can be automatically generated from other files in your project should not be included, because that would be a waste of disk space and just cause conflicts when someone downloads your latest version into their local workspace. The only exception may be documentation, readme files and sample code that may help someone with your project.
Here is a typical folder structure for a code-based project. The files and folders in bold should be included, the rest can (and should) be safely ignored:
-
Binaries*
-
Build - any custom build scripts or other build related dependencies you may have
-
Config - the default configuration files for your packaged project
-
Content - *maps, content files and assets***
-
DerivedDataCache - temporary data files generated when you run the game
-
Intermediate - temporary files generated when you compile your code
-
Saved - local log & configuration files, screenshots, auto-saves etc. that are generated each time you run the game or 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 your Binaries directory that must be included if your project depends on them. However, do not include the DLLs and debug files (.pdb) that are generated for the project itself, i.e. MyProject.dll and MyProject.pdb.
**) Make sure you do not discard your raw assets after importing them into the Engine. While they are not strictly required for building the project (the content packages should contain everything needed to run your game), we recommend that you keep them somewhere in version control. If you don't want to keep them in your project's repository (i.e. because you don't want to give them to the public) you should at least maintain some other private repository for yourself so that you do not loose any changes and can always go back to prior versions of textures, static meshes, sounds and so on, if needed.