git把本地库内容推送到远程库出现错误

    xiaoxiao2022-06-28  34

    git把本地库的所有内容推送到远程库上时,出现如下的错误:

    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文件,用nodepad++打开,找到url对应的那一行,重新写为: url = https://server/username/*your*git*app*.git   (比如:url =https://github.com/zhuhengv/demo.git) 改完之后保存,重新git push -u origin master  问题解决。 

    转载请注明原文地址: https://ju.6miu.com/read-1124623.html

    最新回复(0)