码迷,mamicode.com
首页 > 其他好文 > 详细

使用git拉文件

时间:2018-11-15 20:18:12      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:远程仓库   hub   email   use   rsa   xxx   生成   仓库   conf   

使用git拉文件

yum install git

git config --global user.name "xxx"
git config --global user.email "xxx@163.com"

生成秘钥对
ssh-keygen -t rsa -C "your_email@youremail.com"
cat ~/.ssh/id_rsa.pub

添加公钥到你的远程仓库
登陆你的github帐户。点击你的头像,然后 Settings -> 左栏点击 SSH and GPG keys -> 点击 New SSH key

git clone git@xxx  mydir

使用git拉文件

标签:远程仓库   hub   email   use   rsa   xxx   生成   仓库   conf   

原文地址:http://blog.51cto.com/12473494/2317568

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