首页 > 其他 > 详细

github客户端配置方法简述

时间:2015-08-16 02:06:37      阅读:177      评论:0      收藏:0      [点我收藏+]

/***********************************************************
* Author : Samson
* Date : 08/15/2015
* Test platform:
* gcc  4.8.2
* GNU bash, 4.3.11(1)-release (x86_64-pc-linux-gnu)
* Debian 8
* *********************************************************/


ssh-keygen -t rsa -b 4096 -C "your_email@example.com"


cat /Users/you/.ssh/id_rsa.pub, 将此公钥文件内容添加到gitlab的ssh中;

git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"

使用git clone时出现这样的错误:

fatal: unable to access ‘https://git.lianshinet.com/wbc/nginx-for-cg.git/‘: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none


解决方法:

export GIT_SSL_NO_VERIFY=1


REF:
https://help.github.com/articles/generating-ssh-keys/
https://help.github.com/articles/set-up-git/
523

版权声明:本文为博主原创文章,未经博主允许不得转载。

github客户端配置方法简述

原文:http://blog.csdn.net/yygydjkthh/article/details/47694723

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!