I think that question has answer to your question as well:
git config http."https://code.example.com/".sslCAInfo <downloaded certificate>.pem
And gitconfig file will be smth like:
[http "https://code.example.com/"]
sslCAinfo = /path/to/<downloaded certificate>
Although it doesn't work for me yet...