In fact, git can’t do it. A HOOK is also needed for automatic deployment, but this is too complicated and a newbie can't do it in just a few days.
It’s better to use a better IDE, such as
phpstorm:
1. TOOL-》deployment-》configuration-》add an ftp server.
2. TOOL-》deployment-》automatic
Then after you change the file, the IDE will immediately upload it for you.
In fact, git can’t do it. A HOOK is also needed for automatic deployment, but this is too complicated and a newbie can't do it in just a few days.
It’s better to use a better IDE, such as
phpstorm:
1. TOOL-》deployment-》configuration-》add an ftp server.
2. TOOL-》deployment-》automatic
Then after you change the file, the IDE will immediately upload it for you.
You can use Hexo to build a personal blog on github. [Like this]: http://jameboy.github.io/2015/07/11/%E4%BD%BF%E7%94%A8Hexo%E6%90%AD%E5...
Ubuntu , try
Done. Happy Hacking