What leads to the secret being stored in git's config file like that? None of my repositories have that, the remote URLs all just say "git@github.com:foo/bar.git".
Yes, the git directory has all current and historical versions of the files packed into it, but that's not what the OP used to get information about the scammer.