Use github to build your own personal website and github to build your personal website
This time, I will share with you how to use github to create your own personal website.
Of course, the premise is that you have to have a github account. If not, register one. Official Website: https://github.com/
Then the name is changed. Note that I was wrong here before.
After the name is input, the Description below is the project Description. Let him use the default name. Click Create repository.
Now, I have completed one of the three points.
Next, use the git command. If you have not installed git, you can go to the official website to install the version suitable for your system.
The following command is shown in a figure.
Use text to describe it again:
1. clone to a local directory, open a directory, and I put it on the G disk. Enter the address shown in the third figure above. The content you want to enter is: git clone address (this address is the above https: //.............................. after cloning, refresh the Directory and you will see a generated Folder:
2. Open the new folder and put your project file in it. For example:
3. Next, open the directory in the git Command Panel and execute the following commands in sequence.
Git add. // pay attention to this point. Because my eyesight is not good and I didn't see it clearly, I did not write it during the first upload, and the result is definitely a failure.
Git commit-m "comments here"
Git
Push and enter the account password (github account password) // this step is relatively error-prone. I am afraid that I cannot clearly describe the images I have stolen from other blogs. Let's take a look.
Then, there will be a dialog box on the desktop asking you to enter the password, which is your github password:
The reason why I did not enter the user name in the following command is probably because I have already done a lot of work here, because I am too stupid to install it six times.
After the success, you can enter your website and install it happily.
Oh, by the way, my address is: https://struggle20160730.github.io address here have found any problems? You can see the second figure above.
Https: // github username. github. io
If you think this website is not nice or memorable, you can purchase your own domain name. Because I have not bought it yet, there is no tutorial for the moment.