扫码关注官方订阅号
提示如下
fatal: unable to access 'https://code.csdn.net/yangkeao/odin.git/': The requeste URL returned error: 500
求解释,并解决方案。。。
ringa_lee
问题已经解决,可是仍不知道原理。。
用clone下来的直接push不成功,但添加后git push -u origin master就成功了。。。
查看你一下,你的ssh-key有没有上传到csdn上??
clone 和 fork还不一样,我也遇到过,一般要push,必须保证ssh上传了,还有项目被fork到账户下
看提示用的是 https 的方式吖
第一次git push不上去和你没有指定upstream和分支有关。 查看git手册:
-u, --set-upstream For every branch that is up to date or successfully pushed, add upstream (tracking) reference, used by argument-less git-pull(1) and other commands. For more information, see branch.<name>.merge in git-config(1).
使用-u参数之后以后的git push及不需要再指定upstream了。
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
问题已经解决,可是仍不知道原理。。
用clone下来的直接push不成功,但添加后git push -u origin master就成功了。。。
查看你一下,你的ssh-key有没有上传到csdn上??
clone 和 fork还不一样,我也遇到过,一般要push,必须保证ssh上传了,还有项目被fork到账户下
看提示用的是 https 的方式吖
第一次git push不上去和你没有指定upstream和分支有关。
查看git手册:
使用-u参数之后以后的git push及不需要再指定upstream了。