mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-09 18:19:32 +02:00
Update configure-git.ps1
This commit is contained in:
parent
eb4197dd59
commit
0d969091d0
@ -15,6 +15,7 @@ try {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
if ($FullName -eq "") {
|
if ($FullName -eq "") {
|
||||||
$FullName = read-host "Enter your full name"
|
$FullName = read-host "Enter your full name"
|
||||||
}
|
}
|
||||||
@ -24,8 +25,6 @@ if ($EmailAddress -eq "") {
|
|||||||
if ($FavoriteEditor -eq "") {
|
if ($FavoriteEditor -eq "") {
|
||||||
$FavoriteEditor = read-host "Enter your favorite text editor (emacs,nano,vi,vim,...)"
|
$FavoriteEditor = read-host "Enter your favorite text editor (emacs,nano,vi,vim,...)"
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
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