It turns out that I recently switched accounts in github
, I tried this command to update the accounts withinmacOs
git config --global user.email [email protected]
But it keeps throwing this error.
remote: Permission to BrianAlexanderzalaquett/WalletDive.git denied to 1brian.
fatal: unable to access 'https://github.com/BrianAlexanderzalaquett/WalletDive.git/': The requested URL returned error: 403
It occurs to me that I should uninstall and reinstall again generating new configurations, but if anyone knows of another solution, I will be very grateful.
Cheers
Configuration variables
name
and/oremail
are important for commits and are only required once, so switching accountsgithub
does not affect the need to reassign these variables at all. In the present case, remote access to the repository is not possible, probably due to the non-configuration of access, this due to the change of account. In the settings page , in the menu there is the SSH and GPG keysPersonal settings
option , there you will enter a new key by clicking the button , copy the public key and paste it there. To see the key find the commandNew SSH key
If you want to rewrite or generate a new key, run the following command