Created
November 25, 2021 20:00
-
-
Save jhoek/a0f9912f15126087412f37761ce6e101 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh | |
param | |
( | |
[Parameter(Mandatory, Position = 0)] | |
[string]$CommitMsgFile | |
) | |
$Branch = & git rev-parse --abbrev-ref HEAD | |
Add-Content -Path $CommitMsgFile -Value "[$Branch]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment