Difference between revisions of "Miscellaneous git issues"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Git|Git</yambe:breadcrumb> =Miscellaneous git issues= ==Using git over http proxy== To use git over http proxy use: <pre> git config --global http.proxy <p...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Git|Git</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Git|git]] > [[Miscellaneous git issues]]
=Miscellaneous git issues=


==Using git over http proxy==
==Using git over http proxy==
Line 12: Line 11:
git config --global http.proxy http://proxy.example.com:3128/
git config --global http.proxy http://proxy.example.com:3128/
</pre>
</pre>
==Disable git https self-signed certificate validation==
To disable git https validation during cloning use
<pre>
git -c http.sslVerify=false clone <repository-https-url>
</pre>
where "-c http.sslVerity=false" disables HTTPS certificate verification. 
After this use:
<pre>
git config http.sslVerify false
</pre>
to disable certificate verification for this repository.
https://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Git|git]] > [[Miscellaneous git issues]]

Latest revision as of 15:41, 24 August 2022

Home > CentOS > CentOS 6.x > Versioning tools > git > Miscellaneous git issues

Using git over http proxy

To use git over http proxy use:

git config --global http.proxy <proxy server>

example

git config --global http.proxy http://proxy.example.com:3128/

Disable git https self-signed certificate validation

To disable git https validation during cloning use

git -c http.sslVerify=false clone <repository-https-url>

where "-c http.sslVerity=false" disables HTTPS certificate verification.

After this use:

git config http.sslVerify false

to disable certificate verification for this repository. https://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate


Home > CentOS > CentOS 6.x > Versioning tools > git > Miscellaneous git issues