![](/img/trans.png)
[英]How yo fix port issue in ruby on rails. Port is not working on 3000 and im unable to select different port
[英]How to fix "fatal :unable to look up https (port 9418) (No such host is known)
我正在嘗試使用 git 推送:
git push -u origin --all
這是我的問題:
Fatal: unable to look up https (port 9418) (No such host is known. )
我跑了ping github.com
並獲得了 IP,但我不知道如何處理它們。
你有一個錯誤的遠程 URL - git://
是 Git 協議的名稱(端口 9418),它不需要跟隨不同的協議名稱。
嘗試這個:
git remote set-url origin https://anhbui2904@bitbucket.org/anhbui2904/sample_app.git
這會將您的origin
遠程 URL 設置為使用 HTTPS。
如果git remote set-url origin
不起作用,您可以直接編輯
.git/配置
文件,並將git://https://
前綴修復為所需的 git:// 或https://
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.