Git - remote: Repository not found

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ken_ding/article/details/81909504

今天git 推送和拉取都提示错误

remote: Repository not found.
fatal: repository 'https://github.com/xxx/xxx.git/' not found

解决方法:

$ git credential-manager uninstall

$ git credential-manager install

git 验证

git使用ssh密钥和https两种验证方式:
1,执行vi .git/config 通过url参数可以判断当前你用的是什么方式

2,使用ssh密钥需要生产密钥对,然后将公钥保存到git 远程服务器

    公钥生成向导:http://github.com/guides/providing-your-ssh-key。

3,https需要每次输入密码,免密方式:

    执行 git config --global credential.helper store ,他会在你下一次请求远程时候,让你最后一次输入密码,并把密码以明文的方式保存到.git-credential文件里面

猜你喜欢

转载自blog.csdn.net/ken_ding/article/details/81909504