first try,April sixth,2016
this is my first time to use github,which makes me excited.
using Typora is so happy.
Download msysgit傻瓜式安装
-
ssh-keygen -t rsa -C"[email protected]"
---其中ssh-keygen中无空格 -
在users/.../.ssh/下有个id_rsa.pub文件,用记事本打开全选复制
-
打开github主页,进入SSH Keys,添加SSH Key,将上面内容黏贴到里面
-
msysgit 测试
ssh -T [email protected]
其中为T为大写 -
git config --global user.email "[email protected]" git config --global user.name "michaelyyq"
- 在本地git 库中,右击鼠标git bash打开命令行
git clone https://github.com/michaelyyq/firstgithub.git
- 创建新的文件
git add a.txt
- 提交到本地代码库
git commit -m "saysomething"
- 提交到github上
git push
git push origin master