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

如何下载GitHub端的资源

时间:2015-03-03 15:22:03      阅读:342      评论:0      收藏:0      [点我收藏+]

标签:

Preparations:

1,Frist of all , we need to register a account in https://github.com.

2, Secondly , create a repository by click the "ADD" icon besides your userName.

Then , If we want to sync the repository to native , here I use Linux OS:

1, configure the git , create SSH key 

    ssh-keygen -t rsa -C "your_email@youremail.com"

    The generated key is saved under ~/.ssh/id_rsa.pub, copy the key

2,back  to github , click into AccountSettings->choose SSH keys->add SSH key , tittle could be whatever,paste the key.

3, check whether the key works,

   ssh -T <a href="\"mailto:git@github.com\"" target="\"_blank\"">git@github.com</a> 

4, configure the userName and email

    git config --global user.name "your name"

    git config --global user.email "youemail@your email.com"

5, copy the repository created in github

    git clone "https://github.com/your_name/your repository‘s name.git"



如何下载GitHub端的资源

标签:

原文地址:http://my.oschina.net/xianxianmeier/blog/381872

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