0
背景:git的鉤後收到不工作
我的服務器裸露的回購上我設置後收到鉤文件權限的
-rwxrwxr-x 1 midnight midnight 58 Jan 24 19:45 post-receive
$ cat post-receive
GIT_WORK_TREE = /var/www/mongo_conprima git checkout -f
/var/www/mongo_conprima
drwxr-xr-x 3 midnight midnight 4096 Jan 25 08:40 mongo_conprima
Porblem 當我從本地主機推送時出現以下錯誤
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 228 bytes, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: hooks/post-receive: 1: hooks/post-receive: GIT_WORK_TREE: not found
我想更新生產目錄服務器上的每個按[提問]後:git hook to update changes to working directory and bare git directory
謝謝!它真的起作用了! –