Use Git for the first time to upload a local project to GitHub

Source: Internet
Author: User
Tags commit

Hello, welcome to my blog.

I believe everyone has heard of GitHub, and a lot of people have downloaded the information on it. I often download it.

Today I am also the first time to learn how to upload their own local project to GitHub, below is my operation steps, illustrated, hoping to help the same as I first contact git friends.

GitHub site: https://github.com

If you do not have an account, hurry to register it, is the above site.

After registering successfully: you will see this page


This is the page after you get in.


Next



Then there is

Well, here it is, the warehouse has been built. The next step is to download git and download the software.

Official address is here: https://git-scm.com/

Bad English friends suggest that you use Google, I personally prefer Google's translation. Download will not do more introduction, all the way next can, but note that: the file name as far as possible do not appear in English, to avoid errors should not appear.

When you're done installing it, open your git


I am more lazy, direct C drive, because I space big, yes, there are 2 G, hahaha. We recommend that you install large disk space.

The next step is to enter the command, a picture is done.

Here the CD is open meaning, here the G-Disk is the address of my project, open your project, and then follow the pictures on the command step by steps on it.

If you can't see it, just copy it here: (I'm also a copy, a la La La)

Git init//Turn this directory into git can manage the repository git add readme.md//file add to Repository git Add. Not only can be with a single file, but also with wildcards, you can follow the directory. One point to put all the files in the current directory are not tracked all add git commit-m "first commit"//submit files to the repository git remote add Origin git@github.com:wangjiax9/pract Ice.git//Associated remote repository Git push-u origin master//push all the contents of the local library to the remote library


Finally, we recommend a blog for Daniel: http://www.cnblogs.com/specter45/p/github.html

Well, finally, I personally stepped on the pit to remind: Try not to use CDN, it is best to download the JS and css you need, because I use the CDN are not found. Of course, I'm still looking for a solution. dozed off, goodnight.

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.