search

Home  >  Q&A  >  body text

#github - 如何使用类似Git的方法更新个人网站的代码?

我建了一个个人博客 ,独立域名的,主要是静态页面。打算用来展示简历。我经常修改代码,怎样才可以像github 那样只更新我修改的代码。因为不会搞,每次都全部上传一次,觉得很费时。
还有,我不想用github pages那些,想尝试怎样搞个人博客。
很多人说在服务器上安装git,但我百度很久还是不会怎样安装。
请问有什么解决方案吗?

大家讲道理大家讲道理2754 days ago631

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-05-02 09:23:47

    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.

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-02 09:23:47

    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...

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-02 09:23:47

    Ubuntu , try

    sudo apt-get install git
    
    

    Done. Happy Hacking

    reply
    0
  • Cancelreply