I want to achieve: update my blog from the local environment by git push
push directly to the server
My attempt:
Look at the chapter on building a server in "PRO Git" to implement it through a bare warehouse, so I pushed the local bare warehouse to the server /home/liuzhen
, and then /var/www/
git clone /home/liuzhen/html.git
Pull to the web server root directory
The current situation is:
Update local files and push them to the server
Log in to the server to pull content from the www directory
I want to omit the second step and ask for ideas