Skip to content

Instantly share code, notes, and snippets.

View HungryOwl's full-sized avatar
🚩
bug fixing

Анна HungryOwl

🚩
bug fixing
View GitHub Profile
@Vadimhtml
Vadimhtml / commit-msg
Created June 30, 2017 10:04
Git хук на проверку «refs #» в имени коммита
#!/bin/sh
#
# Хук, который проверяет в имени коммита наличие отсылки
# к задаче Redmine в формате «refs #123456» или слова «merge»
#
# Активируем папку с шаблонами
# git config --global init.templatedir '~/.git-templates'
#
# Создаём директорию для хуков
# mkdir -p ~/.git-templates/hooks