Upload locally created projects to GitHub using the Git tool

Source: Internet
Author: User
Tags version control system

Objective

As a young teenager who is optimistic about cutting-edge technology, how can you not use GitHub? A year ago I created GitHub, I know git, but tried, but didn't understand, many fans asked me GitHub account, want to pay attention to a wave, helpless inside nothing, so must learn and write something in, Google a lot of things, tried many times, finally became , the following will share my experience of the essay ~ ~ ~

By the way, to promote my GitHub account: Https://github.com/AngelKitty or click on the top left corner of the blog can enter, will often update GitHub, welcome to pay attention to support, thank-^

First, a brief introduction to Git and GitHub

Git is a fast-growing version control system that is maintained by GitHub.
Advantage:

1, support offline development, offline repository.

2, powerful branch function, suitable for multiple independent developers to collaborate.

GitHub is a Web site that hosts git (open source or closed) projects.

Second, register an account on GitHub and create a project

This is the official GitHub address, where you can register: https://github.com/, and then click Start a Project.

Complete the creation of the project by filling in the following information

Iii. Initialize the local project and submit it to GitHub

When the above creation is complete, the project is empty, first of all we need to clone the remote repository locally. Click Copy remote git library address

After copying the good address, open git Bash (right-click on git) and enter the command: Git clone "Https://github.com/AngelKitty/Xin-Yue.git" in a different directory from the project you want to submit To take the remote repository Clone island locally. I use the SSH address, the same effect ~ ~ ~

Several files are found in the cloned project, with particular attention: sometimes because the files are hidden, you will not see the. git directory, you need to unhide the file, and then copy the. git, readme.md file to the project you requested to submit.

This is our cloned project.

This is the project we need to submit.

Submit Project to GitHub:

Use the command in turn: Git Add.

Using the command git commit-m "commit instructions"

Re-use command: Git push Origin master

Now that you have completed the project submission, log in to GitHub and see that there is already project engineering on GitHub ~ ~ ~

Upload locally created projects to GitHub using the Git tool

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.