git hooks post-marge - событие после git pull и merge

git hooks post-marge - событие после git pull и merge


freelanceland
Ищете фрилансера для выполнения задач?
Вызываем событие post-marge  после git pull, git merge.

Создаем файл в папке .git/hooks/ c названием post-marge
#!/bin/bash 
dirDoc='/var/www/site.ru/htdocs'
sudo chown -R jenkins:jenkins $dirDoc
echo "Hooks: Владелец файлов в каталоге $dirDoc изменен"
find $dirDoc -type f -exec chmod 664 {} \;
echo "Hooks: Права на файлы в каталоге $dirDoc изменены"
find $dirDoc -type d -exec chmod 775 {} \;
echo "Hooks: Права на папки в каталоге $dirDoc изменены"
Создаем права на исполнение:
 sudo chmod 774 post-marge


Также читают

Установка Laravel на Debian11 - LEMP - nginx, php-fpm, postgresql, Composer, redis, Letsencrypt, Supervisord, Logrotate
http nginx / apache авторизация
phpStorm горячие клавиши

Возврат к списку