Basically I\'m after this but for PowerShell instead of bash.
I use git on windows through PowerShell. If possible, I\'d like my current branch name to displayed as
From @tamj0rd2's answer we can get the branch name to a string variable like this.
$branch = git rev-parse --abbrev-ref HEAD echo $branch