Use GitHub to realize domain name jump

Use GitHub to realize domain name jump

insert image description here

1. Register a github account

You need to register an githubaccount, preferably with a meaningful name, such as the full spelling of the name and the full spelling of the nickname, if it is occupied, you can add a meaningful number.

This article assumes that the username is UNIT-wuji(also my blog name)

Address: https://github.com/

This step will not be explained in detail, if you have any questions, Baidu

2. Create a warehouse <must see the format>

Check your own GitHubaccount name, for example UNIT-wuji; then create a GitHubwarehouse starting with the account name:

(account name.github.io)

Repositories must be named in this format

Of course, if you are not using it for domain name jumping, you don't have to follow this format.

insert image description here

3. Put the file

First of all, you need to create a new text document locally and name it as index.html
the content of the file as follows:

<script>
  window.location.href="https://blog.csdn.net/biggbang"
</script>

Change this hreflink to the URL you want to jump to. Oh, I jumped to the homepage of my CSDNblog.

Ok, after editing the file, you click to run it to see if it can show the URL page you want to reach, if it is, it is successful.

okThe next step is to upload the file to your githubwarehouse

Guess you like

Origin blog.csdn.net/huangbangqing12/article/details/132683452