今天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文件里面
Logo

新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐