1. 程式人生 > >The problem: somthing wrong when my computer excute the command "git clone XXXX"

The problem: somthing wrong when my computer excute the command "git clone XXXX"

Error:[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Reason:I choose "n" when I first excute git clone command

Solution1:reinstall git

Source:

https://blog.csdn.net/weixin_42128364/article/details/81297741

sudo apt-get purge //常規解除安裝

sudo apt-get autoremove // 自動清理一些程式

sudo apt-get autoclean

dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P XXX //刪除不需要的配置檔案

sudo apt-get update //更新本地快取檔案