Skip to content

Instantly share code, notes, and snippets.

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@leenrd
leenrd / commit-msg.sh
Last active April 16, 2024 13:53
Git commit message coerce to specified format
# make a commit-msg file in .git/hooks, no file xtension
# paste this gist inside
# that's it!
#!/bin/sh
echo "Git Hook Triggered! Checking commit message..."
if [ ! -f "$1" ]; then
echo "--------------------------------------------------------------------"
echo "WARNING:⚠️ Aborting commit. No commit message provided." >&2
echo "--------------------------------------------------------------------"
@leenrd
leenrd / $PROFILE.txt
Created June 2, 2023 10:16
$PROFILE config for windows powershell
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
set-alias desktop "Desktop.ps1"