You can combine the different methods for creating source clone secrets for your specific needs, such as a secret that combines a .gitconfig file and CA certificate.
Prerequisites
-
.gitconfig file
-
CA certificate
Procedure
-
Create a secret that combines a .gitconfig file and CA certificate
$ oc create secret generic <secret_name> \ --from-file=ca.crt=<path/to/certificate> \ --from-file=<path/to/.gitconfig>