github - git push总是错误,提示500
ringa_lee
ringa_lee 2017-04-24 09:13:31
0
5
875

提示如下

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

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

ringa_lee
ringa_lee

ringa_lee

reply all(5)
Peter_Zhu

The problem has been solved, but I still don’t know the reason. .

The direct push using clone failed, but after adding it, git push -u origin master succeeded. . .

大家讲道理

Check you, has your ssh-key been uploaded to csdn? ?

PHPzhong

Clone is different from fork. I have also encountered it. Generally, to push, you must ensure that SSH is uploaded, and the project is forked to the account.

小葫芦

Look at the prompts and use https

迷茫

The reason why git push fails for the first time is because you did not specify upstream and branch.
Check out the git manual:

-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).

After using the -u parameter, there is no need to specify upstream for subsequent git push.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template