赞
踩
git 不能推送到码云上
文件可以放在暂存区,但是只要输入git push -u origin "master"命令就会报错一下情况:
fatal: unable to access 'https://xxx.git/': Failed to connect to xxx port xxx after 2042 ms: Couldn't connect to server
设置了错误的 http 代理导致的
Git 中的 http 代理配置可以通过 git config
命令进行设置和修改。如果不小心将错误的代理配置了全局 http 代理,那么在进行 Git 操作时就可能会出现连接问题。
1.查看是否使用了代理
git config --global http.proxy
2.取消代理
git config --global --unset http.proxy
最后我可以push到码云了。
如果拉取的时候有报错提示Can't update(master has no tracked branch),可执行以下操作
git push --set-upstream origin master
问题解决了记录一下,解决办法参考的博主链接如下:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。