Set user info during git
setup
This commit is contained in:
parent
b0fb27f638
commit
b73b4522b2
|
@ -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
|
# Git Flow
|
||||||
. {
|
. {
|
||||||
$dir = New-TemporaryDirectory;
|
$dir = New-TemporaryDirectory;
|
||||||
|
|
Loading…
Reference in a new issue