I have added ssh key to my git repo through below command and now getting below error:
CMD git config --global url.ssh://firstname.lastname@example.org/.insteadOf https://github.com/
Error : User1’s-MacBook-Pro:untitled folder ndpiparava$ git clone https://github.com/XXX-Asft/XXXX
Cloning into 'XXXXX'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git config --global url.ssh://email@example.com/.insteadOf https://github.com/
This means any url starting with
https://github.com/ will be rewritten with
There is no "ip from ssh list for my remote git" to remove.
You can simply delete that global config setting.
git config --global --unset url.ssh://firstname.lastname@example.org/.insteadOf