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 "[email protected]"
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:[email protected]\"" target="\"_blank\"">[email protected]</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"