The Unreal Engine default .gitignore
ignores plugin binary files which may be contributing to the issue.
# Binary Files
Binaries/*
Plugins/*/Binaries/*
However, adding a C++ class to your project is recommended to avoid this issue in the future.