Blueprint objects not persistent through git syncing

Hey everyone, i came across a weird error that I’m hoping requires just a setting fix or something along the lines.

When i add a blueprint object to my level and then push the project to github and then syncing to my laptop the blueprint object disappears.

This obviously seems counter productive having to recreate the level you made on a other device.
If any additional information is required for anyone to help let me know.

I now have found out that after pushing the project and pulling latest changes invalidates all C++ classes thus making the C++ classes folder empty. Which results in all blueprints having no parent class thus invalidating them.

Anyone have any clue to why this is happening?