提示如下
fatal: unable to access 'https://code.csdn.net/yangkeao/odin.git/': The
requeste URL returned error: 500
求解释,并解决方案。。。
天蓬老师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. . .
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.
迷茫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.