User Tools

Site Tools


git

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
git [2014-01-11 01:06 CET]
dominik [Git and SSL with own Certificate authority] Repository config
git [2014-01-11 01:15 CET] (current)
dominik [Git and SSL with own Certificate authority]
Line 246: Line 246:
   - Variant: Global config for all hosts (which won't likely work with all other hosts...) <code bash>git config --global http.sslCAInfo /​path/​to/​root-ca.pem</​code>​   - Variant: Global config for all hosts (which won't likely work with all other hosts...) <code bash>git config --global http.sslCAInfo /​path/​to/​root-ca.pem</​code>​
   - Variant: Using temporary environment variable or runtime config <code bash>   - Variant: Using temporary environment variable or runtime config <code bash>
-git -c http.sslCAInfo=/​path/​to/​root-ca.pem ls-remote https://​git.example.com/​repo.git+git -c http.sslCAInfo=/​path/​to/​root-ca.pem ls-remote https://​git.example.com/​playground.git
  
-GIT_SSL_CAINFO=/​path/​to/​root-ca.pem ls-remote https://​git.example.com/​repo.git+GIT_SSL_CAINFO=/​path/​to/​root-ca.pem ls-remote https://​git.example.com/​playground.git
 </​code>​ </​code>​
   - Variant: Repository config (prerequisite:​ already cloned repository, e.g. with variant 3)<code bash>git config http.sslCAInfo /​path/​to/​root-ca.pem   - Variant: Repository config (prerequisite:​ already cloned repository, e.g. with variant 3)<code bash>git config http.sslCAInfo /​path/​to/​root-ca.pem
 +
 +# Example: 1) clone  2) set sslCAInfo in repository config ​ 3) normal operation
 +git -c http.sslCAInfo=/​path/​to/​root-ca.pem clone https://​git.example.com/​playground.git
 +cd playground
 +git config http.sslCAInfo /​path/​to/​root-ca.pem
 +...
 +git push
 </​code>​ </​code>​
git.txt · Last modified: 2014-01-11 01:15 CET by dominik