diff --git a/knowledge base/git.md b/knowledge base/git.md index c0f6474..f7665ff 100644 --- a/knowledge base/git.md +++ b/knowledge base/git.md @@ -727,17 +727,17 @@ To only pull from `repo1` but push to `repo1` and `repo2` for a specific branch [remote "origin"] url = ssh://git@aaa.xxx.com:7999/yyy/repo1.git fetch = +refs/heads/*:refs/remotes/origin/* - ... + … [remote "specialRemote"] url = ssh://git@aaa.xxx.com:7999/yyy/repo1.git pushurl = ssh://git@aaa.xxx.com:7999/yyy/repo1.git pushurl = ssh://git@aaa.xxx.com:7999/yyy/repo2.git fetch = +refs/heads/*:refs/remotes/origin/* - ... + … [branch "specialBranch"] remote = origin pushRemote = specialRemote - ... + … ``` See . @@ -765,6 +765,15 @@ If gnupg2 and gpg-agent 2.x are used, be sure to set the environment variable GP export GPG_TTY=$(tty) ``` +### Git does not accept self-signed certificates + +Disable certificate verification: + +```shell +export GIT_SSL_NO_VERIFY=true +git -c http.sslVerify=false … +``` + ## Further readings - The official [LFS website]