首页 > 其他 > 详细

使用git拉文件

时间:2018-11-15 20:14:48      阅读:142      评论:0      收藏:0      [点我收藏+]
使用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拉文件

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!