Unreal GitHub doesn't submit C++

Hi,

I’ve set up source control with GitHub and it works fine pushing and pulling the blueprints. The problem is I can’t push or pull any C++ classes and changes to these are not recognised.

When i right click on a C++ class the source control options are greyed out.

231460-sourcecontrolcpp.png

The C++ files were committed to GitHub when I first set it up but I have not been able to commit since.

My gitignore is:

Binaries

DerivedDataCache

Intermediate

Saved

which shouldn’t be a problem? All the C++ files are in /Source

Yes, the Editor does not try to manage C++ classes with Source Control. This is probably because it is way easier to use an external tool, with source code diff and a decent merge tool.

Yes. The Content Browser is showing you UClass types. Those don’t necessarily have a 1:1 mapping between class and source, nor do they necessarily represent all of your edited source code, which is why we don’t try and manage source code via the editor SCC integrations.

You can use the editor for assets, but you’ll have to submit source code via your native SCC tool (you can also submit assets via this too if you want - I always use P4V for submits).

Has this been addressed? It would be great to be able to version C++ code through the editor interface with git. Otherwise you either:

  • Commit twice - once through the editor and then the rest through your SCC tool (this doesn’t make sense)
  • Only commit through your SCC tool