mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-11 16:39:10 +01:00
Improved configure-git.ps1
This commit is contained in:
parent
1a2319c981
commit
5f4734149d
@ -8,15 +8,18 @@
|
||||
#>
|
||||
|
||||
$FullName = read-host "Enter your full name"
|
||||
$EmailAddress = read-host "Enter your email address"
|
||||
$FavoriteEditor = read-host "Enter your favorite editor (emacs,nano,vi,vim,...)"
|
||||
$EmailAddress = read-host "Enter your e-mail address"
|
||||
$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
|
||||
git config --global init.defaultBranch main
|
||||
write-output "OK - git configuration is now:"
|
||||
git config --global http.sslVerify false
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.symlinks true
|
||||
# git config --global init.defaultBranch main
|
||||
write-output "OK - your Git configuration is now:"
|
||||
git config --list
|
||||
exit 0
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user