Use GitHub to realize domain name jump
1. Register a github account
You need to register an github
account, 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 GitHub
account name, for example UNIT-wuji
; then create a GitHub
warehouse 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.
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 href
link to the URL you want to jump to. Oh, I jumped to the homepage of my CSDN
blog.
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.
ok
The next step is to upload the file to your github
warehouse