You can customize the posh-git prompt by modifying properties on the $GitPromptSettings object in your PowerShell profile. To make changes permanent, place these settings in your profile script after the line that imports the posh-git module.
Common Customizations
Add a colored timestamp to the prefix:
$GitPromptSettings.DefaultPromptPrefix.Text = '$(Get-Date -f "MM-dd HH:mm:ss") '
$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Magenta
Disable home directory abbreviation (~):
$GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $false
Change path color (Windows):
$GitPromptSettings.DefaultPromptPath.ForegroundColor = 'Orange'
Change path color (Linux/macOS using RGB):
$GitPromptSettings.DefaultPromptPath.ForegroundColor = 0xFFA500
Create a two-line prompt:
$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n'
Swap path and Git status order:
$GitPromptSettings.DefaultPromptWriteStatusFirst = $true
Add delimiters to the path:
$GitPromptSettings.BeforePath = '{'
$GitPromptSettings.AfterPath = '}'
$GitPromptSettings.BeforePath.ForegroundColor = 'Red'
$GitPromptSettings.AfterPath.ForegroundColor = 'Red'