How can I share my C++ classes with GitHub?

you can use the terminal to explicitly add the Source directory to the git. If I am not mistaken UE4 only takes care of what is in the content folder to be committed to Git. so you need to either use your IDE or terminal to add/commit and then push the Source folder

Hi, me and a friend are working on a racing game and we have set up a repository on GitHub and shared the project with source control. We noticed that the C++ classes are not shared whenever we pushed the project file. We are both very new to ue4 and programming in general so we are wondering what the best way is to share our C++ classes.

Thanks in advance

ps. I don’t know if it matters but I’m using Xcode and he is using visual studio.