GitHub 教程 in Ubuntu

Follow these steps to configure github if you are the first time to use Github

1. Sign up a username using email address in https://github.com/

2. Let manager to add you to a repository

If you have github account, then you don't need to do step 1

3. If you have decided not to use the recommended HTTPS method, we can use SSH keys to establish a secure connection between your computer and GitHub.   See details in the link https://help.github.com/articles/generating-ssh-keys    Note: We can change our email

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

  Go to home/you/.ssh/ to copy the content of publick key to github account setting->SSH key, we can add several keys if you want to use github from different PCs.

4. Set Up Git: See details in the link https://help.github.com/articles/set-up-git

  sudo apt-get install git

  git clone https://github.com/git/git  

  git config --global user.mail "youremail@example.com"

  git config --global user.name "yourname"

  ssh -T git@github.com

  git clone SSH url

5. Until now, you can pull the source code from github

posted on 2013-11-22 13:38  -Anny-  阅读(398)  评论(0编辑  收藏  举报