Skip to content

Instantly share code, notes, and snippets.

@particleflux
particleflux / prepare-commit-msg
Created January 25, 2021 21:31
Check git user config on first local commit
#!/usr/bin/env bash
verified=$(git config --type=bool hooks.userverified)
# grab input
exec < /dev/tty
exec 1>&2
if [[ "$verified" != "true" ]]; then
echo "Checking committer info..."