Sync Local code to GitHub under Windows

Source: Internet
Author: User

1, install Gith client--msysgit on windows, url http://msysgit.github.io/download.


2. Register your GitHub account and create a warehouse on GitHub





3. Then create a local folder (the name is the same as the repository name on GitHub, for example, test), put the code file to be synchronized


4. Finally, follow the instructions on GitHub to perform the following commands:

1) Go to the test directory locally and execute git init

2) Execute git Add. Add all the files in the local repository to the repository;

3) Commit: Git commit-m "First"

4) Execute: Git remote add Origin https://github.com/lanjingling/test.git

5) Commit: Git push-u origin Master

Enter your username and password to

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Sync Local code to GitHub under Windows

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.