当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : git SSL CA cert.... test
帖子发表于 : 2012-11-19 23:26 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
代码:
● git config --global https.proxy localhost:8087
● git config --global core.gitproxy localhost:8087
● git config --global http.proxy localhost:8087

● git remote add httpsgithub https://git@github.com:eexpress/eexp-bin.git
● git remote add http-github http://git@github.com:eexpress/eexp-bin.git

代码:
● sudo  git config --system http.sslcainfo /bin/curl-ca-bundle.crt
● sudo  git config --system https.sslcainfo /bin/curl-ca-bundle.crt
● cat /etc/gitconfig
[http]
   sslcainfo = /bin/curl-ca-bundle.crt
[https]
   sslcainfo = /bin/curl-ca-bundle.crt
● git push httpsgithub
error: Problem with the SSL CA cert (path? access rights?) while accessing https://git@github.com:eexpress/eexp-bin.git/info/refs
fatal: HTTP request failed
● git push http-github
error: The requested URL returned error: 501 while accessing http://git@github.com:eexpress/eexp-bin.git/info/refs
fatal: HTTP request failed


_________________
● 鸣学


页首
 用户资料  
 
2 楼 
 文章标题 : Re: git SSL CA cert.... test
帖子发表于 : 2012-11-19 23:27 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
http://www.simplicidade.org/notes/archi ... rrors.html
ssh-https-tunnel
http://stackoverflow.com/questions/7838 ... oxy-server
http://stackoverflow.com/questions/1280 ... http-proxy

代码:
GAE Mode        : https


_________________
● 鸣学


页首
 用户资料  
 
3 楼 
 文章标题 : Re: git SSL CA cert.... test
帖子发表于 : 2012-11-20 15:06 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
搞清楚了。
代码:
[http]
   proxy = localhost:8087
   sslVerify = false


设置本地端口
代码:
git config --global http.proxy localhost:8087

直接关闭 SSL 证书校验
代码:
git config --global http.sslVerify false


这才是关键,之前写错了。幸好去github看了下。
代码:
git remote add httpsgithub https://eexpress@github.com/eexpress/eexp-bin.git


代码:
● git push httpsgithub
Everything up-to-date


_________________
● 鸣学


页首
 用户资料  
 
4 楼 
 文章标题 : Re: git SSL CA cert.... test
帖子发表于 : 2012-11-21 19:46 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
2012-11-21 19:29:38 三 ~/bin
● git pull
ssh: connect to host github.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly
2012-11-21 19:30:44 三 ~/bin
● git pull httpsgithub
error: couldn't connect to host while accessing https://eexpress@github.com/eexpress/ee ... /info/refs
fatal: HTTP request failed
2012-11-21 19:34:57 三 ~/bin
● git pull httpsgithub
From https://github.com/eexpress/eexp-bin
ffdcad8..d26f063 master -> httpsgithub/master
You asked to pull from the remote 'httpsgithub', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.
2012-11-21 19:35:07 三 ~/bin
● git pull httpsgithub master
From https://github.com/eexpress/eexp-bin
* branch master -> FETCH_HEAD
Already up-to-date.


_________________
● 鸣学


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Yahoo [Bot] 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译