GitHub Introductory Tutorials teach you the easiest open source project hosting-related tips

Source: Internet
Author: User
Tags hosting git client git clone

Since Google code shut down the download service, GitHub as the best free open source project hosting site, many open source projects are hosted in GitHub, including the famous player MPC-HC.

A friend who is not accustomed to English will inevitably have to grope for it, and even give up the big head.

Here will be hands-on to teach you some of my introductory experience.

1, to host to the GitHub, then you should have a belong to your own GitHub account, so you should go to github.com registration

Open your browser

Enter address in the Address bar: github.com

Fill in User name, mailbox, password

Click Sign up to simply register

2, complete registration, into the GitHub platform,

Click New repositories

Create a new project (you can also add to an existing project)

3, the new project operation, in fact very simple, enter the project name can be directly created

As shown in figure

4, the interface at this time, I think we should be very familiar with. Click on the Clipboard icon in the right column to record your project address.

1, method/Step 2 upload item to GitHub

First you have to install a git client on your local computer.

You can use the GitHub client directly or else.

Because I use msysgit, so here to Msysgit as the introduction (Msysgit is also currently the most extensive and practical tools).

Open it

msysgit.github.io

Download and install the latest version of Msysgit

Once the installation is complete, enter the root directory of the project to be hosted,

Right-click to start git bash command line

As shown in the following figure

2, input git clone and then copy the previously recorded address to the back, enter

3. All files and folders of the project folder that will be downloaded, including the. Git folder, are all copied to the root of your managed project (or copy your managed project to that directory)

CD test

Enter the root directory of the managed project.

4, input

git add .

Add changed places to version Manager

5, input

git commit -m "changes log"

Submitted to the local version control library,

Inside quotes are your instructions for this submission.

6, the last input

git push -u origin master

Submit your local warehouse to your GitHub account,

You will be asked to enter your GitHub account and password at this time.

7. Go back to the project page in your github.com.

Has the file in it changed?

So far

The GitHub project has been successfully updated.

More GitHub of the operation, you can slowly experience. But with this first step, I believe it will be much easier for you to explore later.

Attention matters

When you first use Git, you will be asked to enter your user information, and you github the same
Synchronize items in GitHub to your local directory you need to use Git fetch, which is all in the advanced level.
In the process of downloading or uploading, it is recommended that you do not disconnect your network, wait patiently to avoid some bad trouble.
Specific git instructions to view Help yourself

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.