How to fix error: failed to register repository with scalar in Git | DevErrors