github+jekyll--Simple analysis of personal blog creation

Source: Internet
Author: User

New repository:

Log on to the GitHub home page with a registered account, click the triangle next to the "+" symbol in the upper right corner to expand the Level two menu and select " New Repository ":

and then we start naming our new repository, naming the rules that need to be followed: username/username.github.com


after the creation is complete, copy the current resource's git address :

Ii. Project Content hosting:

1. git clone Span style= "margin:0px; padding:0px; Color:rgb (51,102,255) "> ( git address ) "to copy the project on GitHub to the local file directory :

Looking at the git root directory, you can see a folder with the same name as the one on GitHub that corresponds to the GIT address:

Copy all files under the Jekyll project to this directory:

2. Through the instructions " git Add. "Add files that are not on GitHub:

3. Then we need to commit these changes to the local git first, This is to prepare for the subsequent submission of local git modifications to GitHub, where the local instructions are " git Commit-a-M " Modify description " ":

The first time you commit a local git, you are prompted to set up some information on your personal GitHub account and submit it again after Setup:

4. After the local commit is completed, the local modifications are submitted to GitHub, of course. This step is through the directive " git push origin  master ", One of the last parameter flags is the specified version number that was submitted to, corresponding to the branch on GitHub:

The git login box will pop up when you submit it and enter it directly . GitHub's account password completing the verification completes the commit operation:

5. Back to the browser to refresh the newly created repository, you can see that the Jekyll project file has been successfully submitted to GitHub:

In the top left corner, click the Commit "You can also view the current GitHub update submission log:

6. Go back to the engineering interface on GitHub and click on the " Setting "option, you can see the access address of your personal blog in github pages:

7. Now that we have completed all the actions to deploy the personal blog to GitHub, visit the above address to see the effect:


Third, modify the update:

After the above operation, we just completed the deployment of the personal blog on GitHub, we need to continue to add changes to the blog content, here we need to use GIT update operations, as follows:

1. Here we use the modified _config.yml file For example, if we block out the properties of Twitter:

2. We enter the instructions in the Git-bash " git status "Query the modified file list:

    

3. Follow the instructions of the prompt, use " git Add. "add modifications, then use" git commit-a-M" revision notes "" commit the changes to local git, and then use the command "git push origin  Master Commit modification to GitHub:

github+jekyll--Simple analysis of personal blog creation

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.