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
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
| # 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 "--------------------------------------------------------------------" |
| 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" |