Tortoisegit uploading code to GitHub

Source: Internet
Author: User
Tags hosting

GitHub is the preferred hosting site for management software development, and 12306 of train ticket plugins have made it a point for many small white developers (including me) to recognize this site. GitHub can host a variety of git libraries and provide a web interface, unlike services such as SourceForge or Google Code, the unique selling point of GitHub is the simplicity of branching from another project. It is very simple to contribute code for a project, first click on the "Fork" button of the project site, then check out the code and add the changes to the code base you just separated, and finally request a code merge from the project owner through the built-in pull request mechanism. GitHub is divided into public libraries and private libraries, public libraries are for the public can be directly searchable, private library is a personal independent space, 7 dollars a month, 84 dollars a year is about 500 yuan, for the company is basically negligible, personal or public bar. Since it's a code hosting site, the main thing for us is to commit the code, and here's where it starts:

1. First you need to go to tortoisegit official website to download tortoisegit, address http://download.tortoisegit.org/tgit/, The latest is 1.8.11, I download from 1.8.11-1.8.6 can not be used, the last download is 1.8.5, My computer is Window8, so if you have a similar situation, think of me.

2. After the installation, the computer startup item will be displayed, double-click Puttygen, generate the key, this will be configured on GitHub again:

3. Click Generate to generate the key, the result is as follows:

4. Click Save Private key to save this key, location optional, preferably a common location.

5. Go to GitHub website. https://github.com/register an account and then log in, click Setting to enter the Settings page:

6. Add SSH key at this time, title customization, key is the tool generated by the previous key:

7. Create a new repository, fill in the Repository name and description:

8. After creating the completed page:

9. Right-click Git Clone in the blank, download the code from github, the URL is the local directory, and the third red box is the key saved in step fourth. Ssh,directory.

10. Create a new file, and then submit it to GitHub:

11. Right-click Git commit, the submission has merged the new functionality together, whether it is a new or modified direct commit:

Note that a push is required, and the commit is submitted to the local only, and is not committed to the remote server.

12.GitHub above results are as follows:

actually quite simple, say a little effort ~ Blog Park Friends, early to sleep, the body important, late ann ~

Tortoisegit uploading code to 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.