search

Home  >  Q&A  >  body text

github-pages - How to use git to achieve functionality similar to GitHub Pages?

I want to achieve: update my blog from the local environment by git pushpush 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.gitPull to the web server root directory

The current situation is:

  1. Update local files and push them to the server

  2. Log in to the server to pull content from the www directory

I want to omit the second step and ask for ideas

给我你的怀抱给我你的怀抱2792 days ago696

reply all(0)I'll reply

No reply
  • Cancelreply