GitHub installation and configuration under Windows

Source: Internet
Author: User

1. Install GitHub

download GitHub 's version of Windows from the https://git-scm.com/website and always choose to install it by default

after the installation is complete, the desktop right mouse button appears:


2. Register GitHub Personal Account

Sign up for your GitHub account at https://github.com


3. Generate SSH Public key

(1), $ ssh-keygen-t rsa-c "[Email protected]"

# Creates a new SSH key using the Providedemail generating public/private RSA key pair.

Enterfile in which to save the key (/home/you/.ssh/id_rsa):


(2), two files are produced under C:\Documents and settings\administrator\ :id_rsa and id_ Rsa.pub two files, use a text editor to open the latter, copy the contents

(3), add SSH public key to GitHub: on the github.com website to SSH Key Management page, add a new public key, just take a name, paste the contents of the copy.


4. Create a new repository on the Web page




5 . Clone the project on the webpage to local and make changes

(1), first create your own local warehouse folder, and execute the GIT init under the target folder


(2), the repository on the Clone Web page to Local: $git clone + The HTTPS address in the repository created


at this point, you can see the warehouses created on our web page in the local folder.

6. Add user.name and user.email

In Git bash, enter

$git config--global user.name "your name"

$git config--global user.email "your Emali"

7, go to the local warehouse folder, modify the version and upload

(1), first use the CD command to add to the local warehouse folder, corresponding to make changes

Then execute $git Add. Upload the local project to GitHub;

Then execute git commit-m "Changes log" submitted to the local version control Library, the quotation marks are your instructions for this submission.


(2), finally enter Git push-u Origin master to submit your local repository to your GitHub account, you will be asked to enter your GitHub account number and password.


8, refresh the Web warehouse, you can see the change



GitHub installation and configuration under Windows

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.