我在推送全新的存储库时收到此错误,这是错误:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已经做了研究,但大多数都过时了,我也删除了文件夹,但仍然给我这个错误
答案 0 :(得分:0)
第一个删除远程源:
git remote remove origin
然后以这种格式添加一个新的遥控器:
git remote add https://github.com/username/repo-name.git