1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-04-07 16:01:19 +02:00

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,6 +15,7 @@ try {
exit 1
}
try {
if ($FullName -eq "") {
$FullName = read-host "Enter your full name"
}
@ -24,8 +25,6 @@ if ($EmailAddress -eq "") {
if ($FavoriteEditor -eq "") {
$FavoriteEditor = read-host "Enter your favorite text editor (emacs,nano,vi,vim,...)"
}
try {
git config --global user.name $FullName
git config --global user.email $EmailAddress
git config --global core.editor $FavoriteEditor