in server repo site edit file
.git/hooks/post-receive
add next script
#!/bin/bash
export GIT_WORK_TREE=/var/www/sitepath
git checkout -f
.git/hooks/post-receive
add next script
#!/bin/bash
export GIT_WORK_TREE=/var/www/sitepath
git checkout -f
No comments:
Post a Comment