Did you accidentally exclude the Engine\Source\Developer\DerivedDataCache folder from your repo in addition to the Engine\DerivedDataCache folder? The latter folder is the one you want to exclude, since it will be regenerated locally for you. The former folder you need to keep as that is the actual source code for the DerivedDataCache module.