Project Hosting on GitHub

Source: Internet
Author: User
Tags version control system

转载请标明出处,谢谢^_^

GitHub is the world's largest distributed version control system. Official website: https://github.com/
With GitHub hosting, you first have to register a id:https://github.com/join?source=login on the website, register to complete, download the installation client: official website: http://code.google.com/p/msysgit/ Downloads/list, here are also I have downloaded the good, but also the author now use (including tortoisegit abbreviation Tgit, Chinese name of the turtle git): Http://pan.baidu.com/s/1pLh9DwR
You can install it yourself.
After the installation is complete, you need to configure Git, open the Git-bash.exe in the installation directory, configure the GIT username and password (using meaningful names and emails), and enter the command:

git config --global"用户名"  git config --global"邮箱"

Get SSH keys and related configuration (useful): http://www.xuanfengge.com/using-ssh-key-link-github-photo-tour.html
Once the SSH key is set up, you can start uploading the project:
1: Create a new project on GitHub (new repository):

Create:

and find the address of the project (get the address shown below):

After doing this:
Create a new folder anywhere, right-click the folder –git bash, enter:

clone 你获取的github项目地址  

The effect is as follows:

Copy all the files (. git, etc.) from the downloaded folder (the folder will have a green tick under Windows) to the root directory of the project you want to host, some of which are not displayed. Git is hidden, viewed – hidden items, checked, can be seen.
Then right-click-git Bash in the project root blank and enter git init (initialize):

git init

The effect is as follows:

Next, enter git Add. (Note:: Add a space after the dot, do not fall, meaning is added all):

add .

The effect is as follows:

Continue typing:

git  commit -m "changes log"  

Submitted to the local version control repository,

The quotation marks are the information you have about this submission.
The effect is as follows:

Last input

push -u origin master  

Submit your local repository to your GitHub account,

You will be asked to enter your GitHub account number and password (the first time you need to enter it, if you remember the password, you do not need to do it later).
The effect is as follows:

Now that the project has been uploaded successfully, go to GitHub to open the project:

More my new MyTest folder, stating that the upload was successful!

Project Hosting 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.