Git SSH Key 生成步骤
来源:互联网 发布:d3.js圆形图 编辑:程序博客网 时间:2024/06/05 19:16
Git是分布式的代码管理工具,远程的代码管理是基于SSH的,所以要使用远程的Git则需要SSH的配置。
github的SSH配置如下:
一 、
设置Git的user name和email:
$ git config --global user.name “wanjieHan”
$ git config --global user.email “wanjieHan.mvp@gmail.com”
二、生成SSH密钥过程:
1.查看是否已经有了ssh密钥:cd ~/.ssh
如果没有密钥则不会有此文件夹,有则备份删除
2.生存密钥:
$ ssh-keygen -t rsa -C “wanjieHan.mvp@gmail.com”
按3个回车,密码为空。
最后得到了两个文件:id_rsa和id_rsa.pub
3.执行命令获取ssh秘钥
$ cat ~/.ssh/id_rsa.pub
4.在github上添加ssh密钥,这要添加的是“id_rsa.pub”里面的公钥。
打开https://github.com/ ,登录账号 添加试试秘钥
5.拷贝 项目地址 在终端执行
$ git clone 项目地址
6.至此项目结束
7.git 关于指令请查看 http://www.oschina.net/code/snippet_2248391_56386
0 0
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git SSH Key 生成步骤
- Git基本命令使用
- 项目上线流程
- sg-uap数据库连接登录
- 使用开源项目开发vcenter客户端
- ConcurrentHashMap
- Git SSH Key 生成步骤
- UVA 1336 Fixing the Great Wall
- iOS10适配
- Popupwindow的使用
- spring和redis的整合
- java 中的 成员变量、局部变量、静态变量、类变量、非静态变量、实例变量、向前引用、非法向前引用、静态代码块、非静态代码块 执行时机
- hadoop集群sqoop2安装指南
- 【GLSL教程】(二)在OpenGL中使用GLSL
- OD常用快捷键