diff --git a/scripts/Common/Software/git/Manage.ps1 b/scripts/Common/Software/git/Manage.ps1 index c9b605e2..5e782957 100644 --- a/scripts/Common/Software/git/Manage.ps1 +++ b/scripts/Common/Software/git/Manage.ps1 @@ -59,6 +59,19 @@ $null = New-Module { } } + if ($User) { + $displayName = & $getConfig "displayName"; + $mailAddress = & $getConfig "mailAddress"; + + if ($displayName) { + Set-GitConfig "user.name" $displayName; + } + + if ($mailAddress) { + Set-GitConfig "user.email" $mailAddress; + } + } + # Git Flow . { $dir = New-TemporaryDirectory;