Build a personal blog and deploy Github and gitcafe tutorials by Hugo

Source: Internet
Author: User
Tags how to use git arch linux
Github rejects Baiduspider, so your blog can only be searched through google. However, in order to allow students who cannot use google but are eager to learn to see your blog, so I will introduce the deployment of gitcafe. The official documents are clearly written in [official documents].

Github rejects Baiduspider, so your blog can only be searched through google. However, in order to allow students who cannot use google but are eager to learn to see your blog, so I will introduce the deployment of gitcafe. The official documents are clearly written in [official documents].

GitCafe uses code hosting as its core business and provides a series of high-quality cutting-edge services to help developers, projects, and enterprises in China's IT industry learn and grow better.

Git is one of the most popular version control systems in the world. Cafe stands for coffee and symbolizes the programmer culture. On the GitCafe platform, developers can easily collaborate online to develop one open source or private project. Through GitCafe, control and team management of development projects will become convenient and effective.

On GitCafe's website and team, I hope that every user and employee can feel a strong and pure hacker spirit and culture, and discover and understand the true charm and potential of computer technology, inspire every Chinese developer to develop more and more interesting things.

Install GIT

Windows Platform

Download msysGit for installation. After installation, you can find Git Bash and Git GUI on the application interface. Git Bash is a Bash simulation environment, allowing Windows users to use Git like Linux/Unix.CommandGit GUI is a graphical Git management tool that provides a good visual comparison of git diff differences. We recommend that you start with Git Bash and learn how to use Git.

Mac OS X Platform

Download the Git installation package for Mac OS X and install it. > You may encounter the following prompt: xcode-select: note: no develper tools were found... Command line developer tools has not been installed on your Mac. You can install it as prompted by the command line, alternatively, enter xcode-select-install in the command line and press enter to install the SDK.

If homebrew is installed on your Mac, enter brew install git to install it.

Linux platform

Most Linux distributions have pre-compiled Git Binary packages, which can be directly installed through the Package Manager. Select the following command for installation Based on the release version you are using.

Debian/Ubuntu apt-get install git> if you use Ubuntu 10.04, Debian 5.0 (lenny), or an older version, use the apt-get install git-core Command for installation. In earlier versions of Debian, the package git is actually GNU Interactive Tools, not a version control system we are familiar. However, due to the growing influence of Git, GNU Interactive Tools has now been changed to gnuit, and git-core has been officially changed to git.

Fedora/CentOS yum install git Gentoo emerge-ask-verbose dev-vcs/git Arch Linux pacman-S git

Gitcafe deployment
  1. Create an SSH key:
$ mkdir ~/.ssh$ cd  ~/.ssh$ ssh-keygen -t rsa -C "YOUR_EMAIL@YOUREMAIL.COM"Generating public/private rsa key pair.Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in ~/.ssh/id_rsa.Your public key has been saved in ~/.ssh/id_rsa.pub.The key fingerprint is:15:81:d2:7a:c6:6c:0f:ec:b0:b6:d4:18:b8:d1:41:48 YOUR_EMAIL@YOUREMAIL.COM$ cat id_rsa.pub

Then, click account settings in Gitcafe to create an ssh key and paste the printed key.

Test whether the connection is successful

$ ssh -T git@gitcafe.com

Enter yes as prompted. Finally, if this prompt appears

Hi USERNAME! You've successfully authenticated, but GitCafe does not provide shell access.

Congratulations! The connection is successful. 2. submit the project

Create a new project in Gitcafe. For example, the project name is myblog. Go to the public directory and run the following command:

$ Cd ~ /. Ssh $ ssh-keygen-t dsb-C "YOUR_EMAIL@YOUREMAIL.COM" Generating public/private rsa key pair. enter passphrase (empty for no passphrase): Enter same passphrase again: The key fingerprint is: $ cat id_dsb.pub # Add The SSH Public key to The personal settings of The Github website, then test whether it can connect to Github # create a username on the Github website. github. io Project # cd go to the local project folder $ git remote add ghorigin git@github.com: username/username. github. io. git # Add a remote repository address. ghorigin refers to the Github remote repository, which is different from the origin of the Gitcafe repository.

Open the project just created by gitcafe and click "continue" to view all the files pushed.

GitHub deployment
  1. Create an SSH key:

Method 1 has already been introduced. Since the name id_rsa.pub has been occupied by Gitcafe, the rds name is used here.

  1. Submit project
Domain name resolution

If you use a personalized domain name, please refer to this method to make the domain name only Github and Gitcafe at the same time, so that domestic and foreign users can automatically access gitcafe and github.

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.