标签:
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"
标签:
原文地址:http://my.oschina.net/xianxianmeier/blog/381872