Windows upload code to GitHub

Source: Internet
Author: User
Tags git shell

There are a number of ways to upload your code to GitHub, and here I'll show you a more simple one. Tools, the simpler the more useful ah.

1. First download the GitHub client under Windows

: https://desktop.github.com/This client needs to download some packages online. When installed, the following two icons appear:

2. Upload Code

The general situation needs to be all the documents under the project to upload, the concrete way is as follows:

(1) Open git Shell

(2) Enter your project directory

(3) Perform the following command to upload:

  Git init

  git Add. Note the last one. Symbols

  Git commit-m "First commit"

  Git remote add origin remote repository URL

  git remote-v //This is used to see if you added success above

  git push Origin master

3. Download the Code

(1) Open git Shell

(2) Enter the folder you want to place

(3) Git clone remote repository URL

Windows uploads 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.