post-receive hook fails - any chance to see why?

前端 未结 6 1238
失恋的感觉
失恋的感觉 2021-01-15 05:07

I\'m implementing this approach to send updates to my website:

created bare repository to push to

$ mkdir website.git && cd website.git
$ git         


        
6条回答
  •  迷失自我
    2021-01-15 05:30

    I do this on my sites:

    #!/bin/sh
    unset $(git rev-parse --local-env-vars)
    cd /var/www/example.com
    git pull
    

提交回复
热议问题