search

Home  >  Q&A  >  body text

github - git push总是错误,提示500

提示如下

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

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

ringa_leeringa_lee2799 days ago881

reply all(5)I'll reply

  • 天蓬老师

    天蓬老师2017-04-24 09:15:31

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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-24 09:15:31

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

    reply
    0
  • PHPz

    PHPz2017-04-24 09:15:31

    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.

    reply
    0
  • 高洛峰

    高洛峰2017-04-24 09:15:31

    Look at the prompts and use https

    reply
    0
  • 迷茫

    迷茫2017-04-24 09:15:31

    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.

    reply
    0
  • Cancelreply