您好我正在尝试通过Git Bash将文件从我的本地更新到位桶。我收到了像
这样的错误$ git fetch && git checkout master
fatal: unable to access 'https://https://user@bitbucket.org/user/ex.git/': Could not resolve host: https
任何帮助都将不胜感激。
答案 0 :(得分:4)
您将https://
两次放入远程网址。
只需使用git remote -v
然后使用git remote rm origin
然后再次添加遥控器:
git remote add origin https://user@bitbucket.org/user/ex.git
答案 1 :(得分:1)
试试这个:
删除多余的 https 并取消设置http / https代理(在您的情况下为https)
git config --global --unset http.proxy
git config --global --unset https.proxy