Update configure-git.ps1

This commit is contained in:
Markus Fleschutz 2021-02-12 12:38:45 +01:00 committed by GitHub
parent eb4197dd59
commit 0d969091d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,17 +15,16 @@ try {
exit 1
}
if ($FullName -eq "") {
$FullName = read-host "Enter your full name"
}
if ($EmailAddress -eq "") {
$EmailAddress = read-host "Enter your e-mail address"
}
if ($FavoriteEditor -eq "") {
$FavoriteEditor = read-host "Enter your favorite text editor (emacs,nano,vi,vim,...)"
}
try {
if ($FullName -eq "") {
$FullName = read-host "Enter your full name"
}
if ($EmailAddress -eq "") {
$EmailAddress = read-host "Enter your e-mail address"
}
if ($FavoriteEditor -eq "") {
$FavoriteEditor = read-host "Enter your favorite text editor (emacs,nano,vi,vim,...)"
}
git config --global user.name $FullName
git config --global user.email $EmailAddress
git config --global core.editor $FavoriteEditor