You need to find a gitignore for Unity games (or your engine) online and add a .gitignore file to the main folder. That should fix it.