Upload the project step-by-step (Quick Start version) from a local file to Github and get started with github

Source: Internet
Author: User
Tags sourcetree

Upload the project step-by-step (Quick Start version) from a local file to Github and get started with github

Recently, I want to share some of my previous fun projects with Github. I have searched for an upload tutorial on the internet, and I feel that it is too profound and complicated to write, we record our method as follows:

PS: This method is generally applicable to a project that is not directly added to github when the project is started.

 

Preparations:

1. Github account

2. Add a new open source project repository on Github

3. sourcetree tool or other git management tools

(No kids shoes can be downloaded here: http://pan.baidu.com/s/1kV52fyB software is mac version)

 

Body:

1. After the Github project is created, it is blank at the beginning, as shown below:

2. The following are the key points:

Through sourcetree, first clone from github to local

The following page is displayed: add the url and local file path on github.

 

 

Obtain the url from here:

After the clone is successful, an empty project will appear, so that you can establish a connection with github locally.

 

 

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

In this way, open sourcetree and you will find that all the added files are in

 

Select all directly. Just push.

 

Note:

For the first time, you may need to enter your github account and password.

The push process will take a long time. It depends on the project size, and the partner can wait patiently.

 

Finally, refresh github. Your project website will be able to see all newly added code.

 

4. In the end, you 'd better remember to complete Readme. md (equivalent to a project description and so on ).

PS: how to add image Tips to it

First, create a folder for storing images in the project root directory and put it into the image directory. Submit this directory, find this image in github, copy the image connection, and insert it in readme! [Image] (image url)

 

 

Last small advertisement:

Two small open-source projects

1. YJ Weibo

I am new to iOS, so that I can learn from anyone interested in iOS.

Https://github.com/TangledHusky/YJWeibo

 

2. Jigsaw puzzle

Https://github.com/TangledHusky/PuzzlePicture

 

Related Article

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.