Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: I don't handle protocol '' while pushing to upstream

Tags:

git

$ 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
like image 567
pbx2 Avatar asked Apr 27 '16 04:04

pbx2


2 Answers

Try and reset the push url to:

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

Replace <username> with your GitHub user account, and <reponame> with your datasciencecoursera repo name.

like image 94
VonC Avatar answered Nov 05 '22 23:11

VonC


I had a similar problem and I did the following, run the following command

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

replace username and reponame then run

2. git push --set-upstream origin master

Best of luck.

like image 7
sam Avatar answered Nov 05 '22 23:11

sam