$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
$ git push --set-upstream origin master
fatal: I don't handle protocol ''
$ git config --global url."https://".insteadOf git://
$ git push --set-upstream origin master
fatal: I don't handle protocol ''
$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
答案 0 :(得分:15)
尝试将推送网址重置为:
git remote set-url origin https://github.com/<username>/<reponame>
将<username>
替换为您的GitHub用户帐户,将<reponame>
替换为您的datasciencecoursera repo名称。
答案 1 :(得分:5)
我有类似的问题,我做了以下操作,运行以下命令
1. git remote set-url origin https://github.com/<username>/<reponame>
替换用户名和重新命名,然后运行
2. git push --set-upstream origin master
祝你好运。
答案 2 :(得分:0)
它是Https的安全协议错误。 (在ssl也发生了) 它固定了VonC所说的信息。 git remote set-url origin https://github.com/ /
只需遵循Vonc说明。