当我执行 Git 推送时,我收到以下错误消息 -
Username:
Password:
error: The requested URL returned error: 403 while accessing https://github.com/Selvam-T/hw4_rottenpotatoes.git/info/refs
我的Git克隆只读地址是https://github.com/Selvam-T/hw4_rottenpotatoes.git
我按照建议将 repo 配置更改为 ssh 方式,如下所示 -
git remote set-url origin ssh://git@github.com/Selvam-T/hw4_rottenpotatoes.git
然后我得到的错误信息,当我做“git push origin master”时,是这样的——
ssh: Could not resolve hostname github.com:Selvam-T: Name or service not known
fatal: The remote end hung up unexpectedly
如何解决其中任何一个通信问题?