Cache git config settings

There is a way to cache git config user and email from one stage to another in GitHub actions using cache?

thanks