github Clone failed: Could not read from remote repository. pycharm windows

本文介绍了解决PyCharm中遇到的从GitHub拉取仓库失败的问题。通过在Windows系统下使用gitbash生成SSH密钥,并将公钥上传到GitHub账户设置中,成功实现了PyCharm与GitHub的集成。
部署运行你感兴趣的模型镜像

pycharm设置了与github集成,但是从远程拉取仓库的时候总是提示 Clone failed: Could not read from remote repository.错误,经查不是网络而是权限问题,由于是windows系统,百度出来的全是linux关于.ssh的
后来发现,,windows的解决办法也是一样的。。。。
windows系统
在任意处打开git bash,输入ssh-keygen -t rsa -C “你的用户名”
然后会在C:\Users\username.ssh文件下生成两个文件,复制id_rsa.pub文件里的内容
然后打开github网站,在个人/settings/SSH and GPG keys下点击new ssh keys
输入备注(建议输入设备名),然后在下面输入id_rsa.pub里的内容,搞定!

您可能感兴趣的与本文相关的镜像

Facefusion

Facefusion

AI应用

FaceFusion是全新一代AI换脸工具,无需安装,一键运行,可以完成去遮挡,高清化,卡通脸一键替换,并且Nvidia/AMD等显卡全平台支持

(yolo) robot@CYN:~/pycharm-community-2023.1/PythonProjects/ultralytics-main$ pip install -r /home/robot/pycharm-community-2023.1/PythonProjects/ultralytics-main/ultralytics-main/requirements.txt -i https://repo.huaweicloud.com/repository/pypi/simple/ Looking in indexes: https://repo.huaweicloud.com/repository/pypi/simple/ Collecting git+https://github.com/YOUR_USERNAME/ultralytics.git@custom-branch (from -r /home/robot/pycharm-community-2023.1/PythonProjects/ultralytics-main/ultralytics-main/requirements.txt (line 15)) Cloning https://github.com/YOUR_USERNAME/ultralytics.git (to revision custom-branch) to /tmp/pip-req-build-2zcnxj25 Running command git clone --filter=blob:none --quiet https://github.com/YOUR_USERNAME/ultralytics.git /tmp/pip-req-build-2zcnxj25 Username for 'https://github.com': Password for 'https://github.com': remote: Repository not found. fatal: 'https://github.com/YOUR_USERNAME/ultralytics.git/' 鉴权失败 error: subprocess-exited-with-error × git clone --filter=blob:none --quiet https://github.com/YOUR_USERNAME/ultralytics.git /tmp/pip-req-build-2zcnxj25 did not run successfully. │ exit code: 128 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × git clone --filter=blob:none --quiet https://github.com/YOUR_USERNAME/ultralytics.git /tmp/pip-req-build-2zcnxj25 did not run successfully. │ exit code: 128 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. 为什么我指定了华为源还是有这个报错
06-09
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值