mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-11 12:38:17 +02:00
Update configure-git.ps1
This commit is contained in:
parent
eb4197dd59
commit
0d969091d0
@ -15,17 +15,16 @@ try {
|
|||||||
exit 1
|
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 {
|
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.name $FullName
|
||||||
git config --global user.email $EmailAddress
|
git config --global user.email $EmailAddress
|
||||||
git config --global core.editor $FavoriteEditor
|
git config --global core.editor $FavoriteEditor
|
||||||
|
Loading…
Reference in New Issue
Block a user