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 Microsoft.Git -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Git -e --silentwinget uninstall --id Microsoft.Git -e --silentNach Installer
64-Bit · EXE (Inno Setup) · Aktueller Benutzer
Stille Installation
Git-2.56.0.vfs.0.2-64-bit.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
Git-2.56.0.vfs.0.2-64-bit.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\git-the-git-client-team-at-microsoft"64-Bit · EXE (Inno Setup) · Alle Benutzer
Stille Installation
Git-2.56.0.vfs.0.2-64-bit.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
Git-2.56.0.vfs.0.2-64-bit.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\git-the-git-client-team-at-microsoft"ARM64 · EXE (Inno Setup) · Aktueller Benutzer
Stille Installation
Git-2.56.0.vfs.0.2-arm64.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
Git-2.56.0.vfs.0.2-arm64.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\git-the-git-client-team-at-microsoft"ARM64 · EXE (Inno Setup) · Alle Benutzer
Stille Installation
Git-2.56.0.vfs.0.2-arm64.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEigener Ordner
Git-2.56.0.vfs.0.2-arm64.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\git-the-git-client-team-at-microsoft"PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-git-the-git-client-team-at-microsoft.ps1
$url = 'https://github.com/microsoft/git/releases/download/v2.56.0.vfs.0.2/Git-2.56.0.vfs.0.2-64-bit.exe'
$sha256 = 'F4917744C42780EA30BBD417D6290F7172E4340F27F175F3F4C61CEE89FCADA0'
$file = Join-Path $env:TEMP 'Git-2.56.0.vfs.0.2-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-the-git-client-team-at-microsoft.ps1
$url = 'https://github.com/microsoft/git/releases/download/v2.56.0.vfs.0.2/Git-2.56.0.vfs.0.2-64-bit.exe'
$sha256 = 'F4917744C42780EA30BBD417D6290F7172E4340F27F175F3F4C61CEE89FCADA0'
$file = Join-Path $env:TEMP 'Git-2.56.0.vfs.0.2-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-the-git-client-team-at-microsoft.ps1
$url = 'https://github.com/microsoft/git/releases/download/v2.56.0.vfs.0.2/Git-2.56.0.vfs.0.2-arm64.exe'
$sha256 = '3023B985D4C1E246BBB99B464F0411C233047C35FC9318BED57F1D6651111227'
$file = Join-Path $env:TEMP 'Git-2.56.0.vfs.0.2-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-the-git-client-team-at-microsoft.ps1
$url = 'https://github.com/microsoft/git/releases/download/v2.56.0.vfs.0.2/Git-2.56.0.vfs.0.2-arm64.exe'
$sha256 = '3023B985D4C1E246BBB99B464F0411C233047C35FC9318BED57F1D6651111227'
$file = Join-Path $env:TEMP 'Git-2.56.0.vfs.0.2-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