My blog development (028)

Posted May 25, 20203 min read

Solve the previous automatic p tag:turn off automatic escaping in send \ _mail.html, and add css style to comment \ _txt:
image.png
The effect is as follows:
image.png
image.png
image.png
image.png
image.png
Download and install git
image.png
Clone the code repository locally:

(I only kept the code and environment here, and the other contents are saved in other folders)

Copy the url address to be cloned(with http prefix), then select the folder to clone to(here is to clone the environment first), right-click to select git bash, enter the bash interface, enter the command:git clone github address Enter Just:
image.png
Alternatively, you can download the github client, select the repo, and then select the local path to perform cloning:
image.png
image.png
After successful cloning, a .git folder will be created in the local path, which is some configuration files of git(do not delete);

Then copy and paste the code we wrote in Claren \ _Blog into the new folder created by git:
image.png
image.png
Then use git status to view the status of the repo:you need to go to the upper directory of .git. If you have a .git file, the sky blue font will appear on the command line:
image.png
When some red letters appear, it means that the content that has not been submitted is that the existing code is still in the editing area and has not been submitted to the storage area.
image.png
You can use git add to submit the existing code from the editing area to the storage area, and then git status green represents the successful submission
image.png

git add. All files are submitted
git add specific files

Then submit most of the files to the repository, but some files are not recommended to be submitted to the repository, such as the database db we created, because others will download it and extract our account password, and others, it involves Ignore some files:Create a .gitignore file in the project claren \ _lau, add the file we want to ignore(not commit):
image.png (non-txt file)
image.png
Then resubmit the file to the storage area:

First reset:git reset

View status:git status

Then add up:git add.

Try to find one of them:if you do n t find it, it means it s successful(but you do n t want to submit or submit, what should I do?)

Finally, update to the new version:

git commit -m "Initialize project"

Table creation succeeded
Take a look at the versions submitted:

git log

or:

git log --oneline

Push the code to github:

git push

The effect is as follows:
image.png
image.png
Code summary:

Add description:
image.png
Pull the content on github to the local:

git pull

image.png
image.png

https://www.liaoxuefeng.com/wiki/896043488029600