Befehle, um Git ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id Git.Git -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Git.Git -e --silentwinget uninstall --id Git.Git -e --silentNach Installer
64-Bit · EXE (Inno Setup) · Aktueller Benutzer
Stille Installation
Git-2.56.0.3-64-bit.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
Git-2.56.0.3-64-bit.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\git"64-Bit · EXE (Inno Setup) · Alle Benutzer
Stille Installation
Git-2.56.0.3-64-bit.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
Git-2.56.0.3-64-bit.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\git"ARM64 · EXE (Inno Setup) · Aktueller Benutzer
Stille Installation
Git-2.56.0.3-arm64.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
Git-2.56.0.3-arm64.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\git"ARM64 · EXE (Inno Setup) · Alle Benutzer
Stille Installation
Git-2.56.0.3-arm64.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
Git-2.56.0.3-arm64.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\git"PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-git.ps1
$url = 'https://github.com/git-for-windows/git/releases/download/v2.56.0.windows.3/Git-2.56.0.3-64-bit.exe'
$sha256 = 'DC6D3DB061999136E139F31376C5582A9ED6F36A4EA12F15E54AD7FA2BFC0BF2'
$file = Join-Path $env:TEMP 'Git-2.56.0.3-64-bit.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 '/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait install-git.ps1
$url = 'https://github.com/git-for-windows/git/releases/download/v2.56.0.windows.3/Git-2.56.0.3-64-bit.exe'
$sha256 = 'DC6D3DB061999136E139F31376C5582A9ED6F36A4EA12F15E54AD7FA2BFC0BF2'
$file = Join-Path $env:TEMP 'Git-2.56.0.3-64-bit.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 '/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait install-git.ps1
$url = 'https://github.com/git-for-windows/git/releases/download/v2.56.0.windows.3/Git-2.56.0.3-arm64.exe'
$sha256 = '53CFE6358A1F0573C8C777C9AD71151DF8F29986759C689C7B8A5CBB84CCA495'
$file = Join-Path $env:TEMP 'Git-2.56.0.3-arm64.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 '/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait install-git.ps1
$url = 'https://github.com/git-for-windows/git/releases/download/v2.56.0.windows.3/Git-2.56.0.3-arm64.exe'
$sha256 = '53CFE6358A1F0573C8C777C9AD71151DF8F29986759C689C7B8A5CBB84CCA495'
$file = Join-Path $env:TEMP 'Git-2.56.0.3-arm64.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 '/SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait