A simple summary of managed projects on GitHub

Source: Internet
Author: User
Tags git client

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.