Skip to content

Instantly share code, notes, and snippets.

View purgemebaby's full-sized avatar
🫑
El pimiento sabe muy mal

purgemebaby

🫑
El pimiento sabe muy mal
View GitHub Profile
@purgemebaby
purgemebaby / prepare-commit-msg.sh
Created May 6, 2025 00:09
Git Hook Template for commit messages
#!/bin/bash
# Remove .sh from file extension and add this snippet inside .git/hooks folder
MSG_FILE="$1"
COMMIT_SOURCE="$2"
if [[ "$COMMIT_SOURCE" == "merge" || "$COMMIT_SOURCE" == "squash" ]]; then
exit 0
fi
if [[ -s "$MSG_FILE" ]]; then