How to configure Eclipse EGit to use custom proxy settings?

你离开我真会死。 提交于 2019-12-06 03:47:23

问题


I'm behind a corporate firewall, so most of the time (e.g. Eclipse updates) I want to be going through a proxy. However, the servers I pull from in Git are all internal. I currently have to change my proxy settings every time I switch, but I'd like to set it up so that EGit uses a direct connection.

My guess is that it's just not a feature EGit has, but can anyone think of a workaround maybe?

Thanks!


回答1:


EGit should follow the General > Network configuration settings.
If you set that Network mode to "Manual", you can:

  • set your proxy (with authentication)
  • add sites you want in "no_proxy" (in order to not try to contact a proxy)

This seems also valid for ssh protocol, as illustrated by bug 349702.




回答2:


For me the answer of VonC didn't work (Eclipse Neon.2). I had to enter my proxy at the Settings under:

Window -> Preferences

and then General -> Network connections

Also note that some proxy servers block the git:// and ssh:// protocols. If you face issues, try to use the https:// or http:// protocol.



来源:https://stackoverflow.com/questions/6615121/how-to-configure-eclipse-egit-to-use-custom-proxy-settings

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!