I am trying to push using git using:
git push -u origin --all
Here is my problem:
Fatal: unable to look up https (port 9418) (No such host is known. )
I ran ping github.com
and got the IP, but I do not know what to do with them.
Join Stack Overflow to learn, share knowledge, and build your career.
I am trying to push using git using:
git push -u origin --all
Here is my problem:
Fatal: unable to look up https (port 9418) (No such host is known. )
I ran ping github.com
and got the IP, but I do not know what to do with them.
You have a wrong remote URL - git://
is the name of Git protocol (port 9418), and it doesn't need to be followed by a different protocol name.
Try this:
git remote set-url origin https://anhbui2904@bitbucket.org/anhbui2904/sample_app.git
This will set your origin
remote URL to use HTTPS.
if git remote set-url origin
doesn't work, you may edit directly the
.git/config
file, and repair the git://https://
prefix to desired, git:// or https://
git remote -v
? – phd Jun 16 '19 at 11:24git remote -v
it show me hereorigin git://https://anhbui2904@bitbucket.org/anhbui2904/sample_app.git (fetch) origin git://https://anhbui2904@bitbucket.org/anhbui2904/sample_app.git (push)
Any idea for me? – Anh Bui Jun 16 '19 at 12:27