github学习之路(一)部署
来源:互联网 发布:淘宝历史宝贝精灵 编辑:程序博客网 时间:2024/05/29 16:29
Enter file in which to save the key (/c/Users/xxxx_000/.ssh/id_rsa): #不填直接回车。
Enter passphrase (empty for no passphrase): #输入密码(可以为空)。
Enter same passphrase again: #再次确认密码(可以为空)。
Your identification has been saved in /c/Users/xxxx_000/.ssh/id_rsa. #生成的密钥。
Your public key has been saved in /c/Users/xxxx_000/.ssh/id_rsa.pub. #生成的公钥。
测试ssh keys是否设置成功。
$ ssh -T git@github.com
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:xx:xx:xx:xx:xx:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes #确认你是否继续联系,输入yes
Warning: Permanently added 'github.com,192.30.252.129' (RSA) to the list of known hosts.
Enter passphrase for key '/c/Users/xxxx_000/.ssh/id_rsa': #生成ssh kye是密码为空则无此项,若设置有密码则有此项且,输入生成ssh key时设置的密码即可。
Hi xxx! You've successfully authenticated, but GitHub does not provide shell access. #出现词句话,说明设置成功。
本地创建项目
1) 创建目录
$ mkdir test
$ cd test
2) 初始化
$ git init
3) 创建hello.md文件
$ echo "这是一次测试test ssh key" > hello.md
4) 提交到本地
若出现如上warning提示则重新提交一次即可。
$ git add . #提交当前目录下所以文件
$ git commit -m "add hello.md" #提交记录说明
5) 提交到github
$ git remote add origin git......./test-ssh-key.git #
$ git push -u origin master
Enter passphrase for key '/c/Users/hgpin_000/.ssh/id_rsa': #ssh key设置密码故此需要输入密码
- github学习之路(一)部署
- GitHub代码管理学习之路(一)
- Github 学习之sshkey创建(一)
- 学习使用GitHub(一)--之入门
- Git&GitHub学习笔记之(一)GitHub简单操作
- GitHub学习笔记(一)---GitHub介绍
- GitHub学习之路
- GitHub 学习之路
- 学习使用github(一)
- GitHub学习笔记(一)
- Github学习之旅一 Github for windows 2.0
- GitHub 之初学(一)
- 我的Web Service学习之路(一)---Axis2部署
- github学习之路2
- 【Github】github学习(一)--概览github
- Github使用学习笔记(一)
- 笔记:github学习(初学者一)
- github学习(一)安装失败解决
- mac的php7的安装记录
- 泛型(二)
- demo.xcodeproj Couldn't load demo.xcodeproj because it is already opened fro问题解决方法
- 全局静态变量和局部静态变量的区别
- 第2章 一切都是对象——Thinking-in-Java
- github学习之路(一)部署
- 内链接和外连接
- 15电气李书鹏 作业1
- 设计模式第八堂课
- Codeforces 301A Yaroslav and Sequence 【思维】
- git工作笔记
- [BZOJ1056][HAOI2008]排名系统(平衡树splay)
- MyBatis逆向工程
- Android开发 Activity的四种启动模式