2016.12.16
git简单记录
1、设置Git的user name和email:(如果是第一次使用):
git config --global user.name "your username"
git config --global user.email "your email"

2、检查配置
git config --list

3、生成ssh密钥:
ssh-keygen -t rsa -C "your email"
4、github上面添加ssh的公钥。
5、测试是否能够ssh登录github:
ssh -T git@github.com

6、本地创建仓库:
git init
7、添加项目:
8、将项目添加到缓存区:
git add .
9、将项目提交到HEAD:
git commit -m "代码提交信息"
10、提交服务器:
git push origin master
网友评论