Skip to content

Instantly share code, notes, and snippets.

View deliseev's full-sized avatar
🏠
Working from home

Denis Eliseev deliseev

🏠
Working from home
View GitHub Profile
@deliseev
deliseev / prepare-commit-msg
Last active October 28, 2021 14:26 — forked from Bradshaw/prepare-commit-msg
Use `BRANCH_NAME: message` format
#!/bin/sh
#
# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit
# message's source. The hook's purpose is to edit the commit
# message file. If the hook fails with a non-zero status,
# the commit is aborted.
#
# To enable this hook, rename this file to "prepare-commit-msg".