git 使用ssh方式访问

输入ssh-keygen命令,一般会在home产生一个key文件,具体位置在 ~/.ssh/id_rsa.pub

然后到git仓库中设置:Manage Account——ssh keys中,添加一个key就行了

如果出现错误:error:  while accessing https://github.com/nvie/gitflow.git/info/refs
可以尝试用以下方式解决
git config --global http.sslVerify false

posted @ 2015-06-20 23:21  szphper  阅读(385)  评论(0)    收藏  举报