Set user info during git
setup
This commit is contained in:
parent
b0fb27f638
commit
b73b4522b2
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue