Files
LumaOps-Public/scripts/git-get-branch.ps1
T

3 lines
138 B
PowerShell

$HASH = git log --pretty=%h -1
git show-ref | select-string $HASH | select-string -NotMatch HEAD | foreach {$_ -replace '.*/(.*)','$1'}