gpt4 book ai didi

git - 致命的 : I don't handle protocol '' while pushing to upstream

转载 作者:太空狗 更新时间:2023-10-29 13:04:30 26 4
gpt4 key购买 nike

$ 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

最佳答案

尝试将推送 url 重置为:

git remote set-url origin https://github.com/<username>/<reponame>

替换<username>使用您的 GitHub 用户帐户,以及 <reponame>使用您的 datasciencecoursera 存储库名称。

关于git - 致命的 : I don't handle protocol '' while pushing to upstream,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36880121/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com