首页 > git push总是错误,提示500

git push总是错误,提示500

提示如下

fatal: unable to access 'https://code.csdn.net/yangkeao/odin.git/': The
requeste URL returned error: 500

求解释,并解决方案。。。


clone 和 fork还不一样,我也遇到过,一般要push,必须保证ssh上传了,还有项目被fork到账户下


问题已经解决,可是仍不知道原理。。

用clone下来的直接push不成功,但添加后git push -u origin master就成功了。。。


查看你一下,你的ssh-key有没有上传到csdn上??


第一次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了。


看提示用的是 https 的方式吖

【热门文章】
【热门文章】