Git for Windows SDK ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id Git.SDK -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Git.SDK -e --silentwinget uninstall --id Git.SDK -e --silentInstaller အလိုက်
64-bit · EXE
အသံတိတ်ထည့်သွင်းခြင်း
git-sdk-installer-1.0.8-64.7z.exe -y32-bit · EXE
အသံတိတ်ထည့်သွင်းခြင်း
git-sdk-installer-1.0.8-32.7z.exe -yPowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-git-for-windows-sdk.ps1
$url = 'https://github.com/git-for-windows/build-extra/releases/download/git-sdk-1.0.8/git-sdk-installer-1.0.8-64.7z.exe'
$sha256 = 'FC0B4FCFBF8FB9EDB59D71958100441F5428EBB061D32C2F23DB4099907D18D6'
$file = Join-Path $env:TEMP 'git-sdk-installer-1.0.8-64.7z.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '-y' -Wait install-git-for-windows-sdk.ps1
$url = 'https://github.com/git-for-windows/build-extra/releases/download/git-sdk-1.0.8/git-sdk-installer-1.0.8-32.7z.exe'
$sha256 = '086D7F99E0085E0D6111B2458FDE8B27DFE8BEC064D9DC7C392A183564E7EA6A'
$file = Join-Path $env:TEMP 'git-sdk-installer-1.0.8-32.7z.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '-y' -Wait