Cache git credentials.