失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 使用IntelliJ IDEA上传项目至gitlab等远程仓库报错timeout

使用IntelliJ IDEA上传项目至gitlab等远程仓库报错timeout

时间:2023-12-14 03:25:40

相关推荐

使用IntelliJ IDEA上传项目至gitlab等远程仓库报错timeout

Remote URL test failed: unable to access ‘http://192.168.199.110/1111/mytest.git/’: Failed to connect to 192.168.199.110 port 80: Timed out

解决办法:

修改git配置文件.gitconfig

步骤如下:

选择第一个用记事本打开

也就是找到http添加上代理

proxy = 192.168.197.129:80

[diff "astextplain"]textconv = astextplain[filter "lfs"]clean = git-lfs clean -- %fsmudge = git-lfs smudge -- %fprocess = git-lfs filter-processrequired = true[http]proxy = 192.168.197.129:80sslBackend = opensslsslCAInfo = D:/software/Git/mingw64/ssl/certs/ca-bundle.crt[core]autocrlf = truefscache = truesymlinks = false[pull]rebase = false[credential]helper = manager-core[credential ""]useHttpPath = true[init]defaultBranch = master

再次去gitlab中复制项目,点击下面图片红色方框,复制路径,注意是http

回到idea中,粘贴到URL上

发现成功!输入用户名和密码就可以了

登录成功后点击push

成功

GitLab上可以看到你的项目了。

如果觉得《使用IntelliJ IDEA上传项目至gitlab等远程仓库报错timeout》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。