GitHub is a git-based code hosting platform where paid users can build private warehouses, and our average free users can only use public warehouses.
There are generally several steps:
1. Register your account and create a warehouse
Register your account on GitHub and new repository to build your own remote repository. You can get [email protected]: username/repository name. Git, this is the address of the remote repository.
2. Install the GIT client
I am under Ubuntu, so simply use Apt-get install git. If you are a Windows user, you can install the interface client under win.
3. Configure the GIT client
(1) Configure User name and mailbox
Upload your local repository to GitHub, and you'll need to set up username and email before, since GitHub will record them every time it commits.
git config--global user.name "Your name" git config--global user.email "[Email protected]"
(2) Generate a local Ssh-key
[Email protected]
The following [email protected] changed to your mailbox, then asked to confirm the path and enter the password, we use the default all the way to the line. Successful words will be generated under ~/. SSH folder, go in, open id_rsa.pub, copy the key inside.
Go back to GitHub, go to account Settings, choose SSH keys,add ssh key,title on the left, and paste the Key. In order to verify success, enter:
$ ssh-t [email protected]
If it is the first time will prompt whether continue, enter Yes will see: You ' ve successfully authenticated, but GitHub does not provide shell access. This means that you have successfully connected to GitHub.
3. Build a local warehouse
You can create a local repository simply by using the GIT clone remote repository.
git clone [email protected]: User name/repository name. Git
4. Happily push and pull
All that remains is to upload to the remote repository git push or get the remote code git pull.
Reference: http://wuyuans.com/2012/05/github-simple-tutorial/
A simple summary of managed projects on GitHub