标签:
1.检查是否安装
$git --version
2.配置
$git config --global user.name "name"
$git config --global user.email "email@xxx.com"
3.创建SSH
$ssh-keygen -t rsa -C "email@xxx.com"
4.与远程库建立关联
$git remote add orgin https://github.com/user/repo.git
5.提交
$git push [-u] origin master
6.从远程库克隆
$git clone https://github.com/user/repo.git
标签:
原文地址:http://www.cnblogs.com/happydemo/p/4519059.html