Upload a project from local to Github (Quick start version)

Source: Internet
Author: User
Tags sourcetree

Recently wanted to make some of their own fun projects to share to GitHub, online to find a lap upload tutorials, are feeling written too abstruse, complex, foggy, special to their own method record as follows:

PS: This is generally true when you start a project and do not add it directly on GitHub, and then half or finish the project you want to add.

Preparatory work:

1. GitHub Account

2. Add a new Open source project repository on GitHub

3. Sourcetree tools, or other git management tools

(No children's shoes can be downloaded here: Http://pan.baidu.com/s/1kV52fyB software is Mac version)

Body:

1. When the GitHub project is created, it is empty at first, as follows:

2, the following is the key

Via Sourcetree, first clone from GitHub to local

The following screen appears: Add a URL on GitHub, a local file path.

The URL address gets from here:

After cloning succeeds, an empty project appears, so the local connection to GitHub is established.

3. Copy all of your previous projects (except. git files) to the file you just made.

This opens the Sourcetree, you will find that the added files are in the

Direct Select all, push is good.

Attention:

For the first time, you may want to enter your GitHub account number and password, and your partner will not forget

The push process will be a bit long, depending on the size of the project, and the small partner will wait patiently.

Finally, after the success, refresh github-your project site to see all the newly added code.

4, the last small partner best remember to readme.md (equivalent to a description of the project) perfect under the OH

PS: Here is attached how to add pictures inside tips

First in the project root directory to create a picture folder to put pictures, submit this directory, in GitHub to find this picture, copy the image link, in the Readme insert the following code




OVER !


Upload a project from local to Github (Quick start version)

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.