I would encounter the error message like:
error: Problem with the SSL CA cert (path? access rights?) while accessing https://tw.ubnt.com/git/example.git/info/refs fatal: HTTP request failed
So we have to config the git by command:
git config --global http.sslVerify false
Then git clone again
$ git clone https://tw.ubnt.com/git/example.git
Cloning into 'test'...
Username for 'https://tw.ubnt.com': name
Password for 'https://name@tw.ubnt.com': password
remote: Counting objects: 1054, done.
remote: Compressing objects: 100% (674/674), done.
remote: Total 1054 (delta 390), reused 747 (delta 290)
Receiving objects: 100% (1054/1054), 14.45 MiB | 377 KiB/s, done.
Resolving deltas: 100% (390/390), done.
Done!
沒有留言:
張貼留言