码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 下 git连接github的使用

时间:2015-03-12 20:47:48      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:

1、安装git

sudo apt-get install git

2、创建github帐号

3、Linux创建SSH密钥:

ssh-keygen  //一直默认

4、将公钥加入到Github账户信息Account Settings -> SSH Key

5、测试验证是否成功

ssh -T git@github.com

6、同步github到本地

git clone https://github.com/xxx/xxx.git

7、配置个人信息

git config --global user.name ‘xxx‘

git config --global user.email ‘xxx@xx‘

8、创建git仓库

git init

9、向github提交

git add *

git commit -m "xxxxxx"

git push origin master

Linux 下 git连接github的使用

标签:

原文地址:http://www.cnblogs.com/sywlneu/p/4333383.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!