Updated command to configure git to specify domain

This commit is contained in:
Patrick 2025-03-26 23:42:09 +01:00
parent 26a7da0328
commit 36bb115eb0
1 changed files with 2 additions and 2 deletions

View File

@ -2,9 +2,9 @@ Command to configure git to accept the self signed certificate
```bash
curl -k https://git.fritz.box/Patrick/gitea-git-config/raw/branch/main/git-cert.pem > $HOME/.git.certs.pem
git config --global http.sslCAInfo $HOME/.git.certs.pem
git config --global http.https://git.fritz.box.sslCAInfo $HOME/.git.certs.pem
```
Or as one command:
```bash
curl -k https://git.fritz.box/Patrick/gitea-git-config/raw/branch/main/git-cert.pem > $HOME/.git.certs.pem && git config --global http.sslCAInfo $HOME/.git.certs.pem
curl -k https://git.fritz.box/Patrick/gitea-git-config/raw/branch/main/git-cert.pem > $HOME/.git.certs.pem && git config --global http.https://git.fritz.box.sslCAInfo $HOME/.git.certs.pem
```