Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dev:git:proxy [2021/10/06 05:04] – created jsdev:git:proxy [2021/10/06 05:09] (current) js
Line 4: Line 4:
  
 [[https://gist.github.com/evantoli/f8c23a37eb3558ab8765]] [[https://gist.github.com/evantoli/f8c23a37eb3558ab8765]]
 +
 +
 +==== .gitconfig ====
 +
 +Add this to the .gitconfig file:
 +
 +<code>[http]
 +    proxy = http://mydomain\\myusername:mypassword@myproxy.server.com:8080
 +</code>
 +
 +If you want to restrict the url you want to use this config:
 +
 +<code>http]
 +[http "https://example.com"]
 + proxy = http://mydomain\\myusername:mypassword@proxy.server.com:port
 +</code>
 +
 +If there are ssl problems connecting to the git repo - add
 +<code>
 +[http "https://example.com"]
 + proxy = http://mydomain\\myusername:mypassword@proxy.server.com:port
 +        sslVerify = false
 +</code>
 +