Win764 bit Configuring the GitHub environment and deploying the code to Gtihub pages-Strong summary of Chi Silver

Source: Internet
Author: User

(software and tutorials Download share: Link: http://pan.baidu.com/s/1dFysay9 password: pug0)

1- installation Git-2.9.2-64-bit.exe ( unzip the installation file , Run the Setup program , In addition to remember to modify the next installation path is the default next installation )

2- Connection Configuration Git Environment:

2.1- First, create a local ssh key;

2.1.1- Start Git Bash here:

2.1.2- Enter the following code , behind the [email protected] instead of you in GitHub on the registered mailbox

$ssh-keygen-t rsa-c "[email protected]"//email to fill out your git account

2.2- Back to GitHub on, enter Account Settings (account configuration), left select SSH Keys , Add SSH key,title Just fill it out and paste it on your computer . key.

2.2.1- Add Plot :

2.2.2- Verify the success of the git bash input below: $ ssh-t [email protected]

If this is the first time you will be prompted whether continue,

Enter Yes to see: You've successfully authenticated, but GitHub does not provide shell access.

This means that you have successfully connected to GitHub.

3- upload the local warehouse to GitHub up :

3.1- You will need to set it up one time before username ( user name ) and the Email ( email ) and that's very important because GitHub every commit ( submit ) will record them .

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

$ git config--global user.email "[Email protected]"

my: git config--global user.name "czy95"

git config--global user.email "******* @qq. com"

View configuration information: $ git config–list

3.2- Create a new GitHub warehouses and add branches :

3.2.1- Create a new GitHub Warehouse :

3.2.2- Create a gh-pages Branch :

3.3-clone remote Warehouse to local :

Commands to use:

$ git clone https://github.com/user name/library name. Git//download git library to local

my: $ git clone https://github.com/czy95/czy.git

$ CD Library name//Enter the downloaded library file directory.

my: $ cd Czy

$ git checkout-b gh-pages origin/gh-pages//Switch to Gh-paes branch

3.4- Delete all the files inside, preferably not directly deleted, by git command Delete :

Commands to use:

$ git rm-rf.

$ git Add.

$ git commit-m "Delete all Files"

3.5- Submit code to gh-gages Branch :

Commands to use:

$ git Add.

$ git commit-m "add czyclock"//The last parameter corresponds to the comment of the modified file

$ GIT push origin gh-pages//Submit code to Gh-gaes branch

4- Finish Viewing results :

Ok !!

Started written in: 2016.10.12----zhi Yin

Win764 bit Configuring the GitHub environment and deploying the code to Gtihub pages-Strong summary of Chi Silver

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.