Hexo+github High-Grid personal blog Building Guide (preparation)

Source: Internet
Author: User
Tags gpg

git downloads and installs Git

Go to the git download page, download the appropriate version, and install it. Next , go to the Select components interface and tick git Bash here and git GUIhere. next, complete the installation.
Right-click on the desktop, you will see the right-click menu more git Bash here and git GUI here two items. At this point we can use Git in the resource manager.
Note: I changed the computer to reinstall Git after the discovery of right-click Git bash although pop-up window, but the current directory is not desktop, and later found that is because the Sogou wallpaper opened the icon to organize, turn off the chart to organize the good.

GitHub Application for GitHub account

1. Register for GitHub, fill in your nickname, enter your email address, set your password, and then click the Sign up for GitHub button.
2. At this time the page to jump, here to choose to become free users or paid users, of course, we choose free users just fine, unless you local tyrants you don't care you pay it. O (∩_∩) o~

3. The third step will allow you to select a number of levels, such as the development level, the purpose of registering GitHub, these are optional, and then click the Submit button to complete the registration.

Mailbox Verification

1. Login to GitHub, click on the avatar in the top right corner, a list will appear, click Settings.

2. After entering the Settings page, the Emails in the right navigation will have a warning icon because the mailbox has not been verified yet. Enter your registered email (that is, the primary primary mailbox) for verification, and if you do not receive a verification email, click Resend Resend.

Configuration of SSH

On the Settings page we can see the ssh and GPG Keys title, where we can add the locally generated SSH key to GitHub so that GitHub trusts the machine and the local code is uploaded to GitHub.
1. First, right-click Git Bashhere to open the Command window.

2. Enter the following command, which is your primary mailbox.

1 $ ssh-keygen-t rsa-c "[email protected]"

3. Enter, let you input the directory to save key, can not fill, enter; let you input a password, you can not fill in, enter; Confirm the secret, you can not fill in, enter.
4. Successfully generated key and display save path, for example:

5. Open id_rsa.pub with Notepad tool, select Copy all, open GitHub, go to Settings, choose ssh and GPG keys, click the New SSH key button, title casually write, Paste the copied key in the text box under key and click the Add SSH key button.

Hexo

Finally can install Hexo!!! ^O^ this is easy.

Installing Hexo

1. First the desktop right-click Gti Bash here to open the Command window, enter the following command to install Hexo globally.

1 $ NPM install-g Hexo

2. Create a new folder, as the Hexo site directory, the specific location you choose. Enter the directory, right-click Git BashHere, enter the Hexo initialization command, after successful execution, the site directory will have HEXO framework content.

1 $ HEXO Init

3. Download the required dependencies, the site directory will appear under the name Node_modules folder, which is placed in the Hexo required by the dependency package.

1 $ NMP Install

4. Execute Hexo generate, generate the blog directory public, then execute Hexo server, start the server, and visit http://localhost:4000/to view the local blog.

Original link: https://selina0526.github.io/2016/12/21/Hexo-Github-%E9%AB%98%E9%80%BC%E6%A0%BC%E4%B8%AA%E4%BA%BA%E5%8D% 9a%e5%ae%a2%e6%90%ad%e5%bb%ba%e6%8c%87%e5%8d%97/

Hexo+github High-Grid personal blog Building Guide (preparation)

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.