扫码关注官方订阅号
我记得以前不用啊,是不是哪里搞错了?
在添加远程库的时候使用了https的方式。。所以每次都要用https的方式push到远程库,速度还慢。。
查看使用的传输协议:
git remote -v
重新设置成ssh的方式:
git remote rm origin git remote add origin git@github.com:username/repository.git git push -u origin master
git config --global credential.helper store
git config --global credential.helper "store"
配置好后在 .gitconfig 文件中可以看到
因为你当前使用的是https提交方式,改为ssh方式即可。
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
在添加远程库的时候使用了https的方式。。所以每次都要用https的方式push到远程库,速度还慢。。
查看使用的传输协议:
重新设置成ssh的方式:
git config --global credential.helper store
配置好后在 .gitconfig 文件中可以看到
因为你当前使用的是https提交方式,改为ssh方式即可。