hooks
下面
post-receive
chmod a+x post-receive
vim post-receive
16 unset GIT_DIR
17 WwwPath=/var/www/html/weixinevent1
18 cd $WwwPath
19 git pull origin master
20 rsync -az --progress --exclude=.git /var/www/html/weixinevent1/* root@XXXXXX:/alidata/www/XXXXX
~
~
~
~