From 6be9db7e372aab341ad9e6297206b38dcd7b0128 Mon Sep 17 00:00:00 2001 From: jingjingxyk Date: Thu, 30 Jan 2025 11:26:01 +0800 Subject: [PATCH] add windows git init --- sapi/quickstart/windows/git-init.ps1 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sapi/quickstart/windows/git-init.ps1 b/sapi/quickstart/windows/git-init.ps1 index d464fcb39..72bf5b610 100644 --- a/sapi/quickstart/windows/git-init.ps1 +++ b/sapi/quickstart/windows/git-init.ps1 @@ -21,10 +21,9 @@ if (-not (Test-Path -Path $git_install_package)) $env:PATH += ";C:\Program Files\Git;" Write-host $env:PATH -git.exe -v -git -v -git config --global core.autocrlf false -git config --global core.eol lf -git config --global core.ignorecase false +Invoke-Expression -Command "git -v" +Invoke-Expression -Command "git config --global core.autocrlf false" +Invoke-Expression -Command "git config --global core.eol lf" +Invoke-Expression -Command "git config --global core.ignorecase false"