Ordres per instal·lar Git Credential Manager (User) sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
winget install --id Git.GCM -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Git.GCM -e --silentwinget uninstall --id Git.GCM -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Usuari actual
gcmuser-win-x64-3.0.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-gcmuser-win-x64-3.0.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\git-credential-manager-user"- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{aa76d31d-432c-42ee-844c-bc0bc801cef3}}_is1
- Carpeta d’instal·lació
- %LocalAppData%\Programs\Git Credential Manager
64 bits · EXE (Inno Setup) · Tots els usuaris
gcm-win-x64-3.0.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-gcm-win-x64-3.0.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\git-credential-manager-user"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{fdfae50a-1bc1-4ead-9228-1e1c275e8d12}}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\Git Credential Manager
64 bits · ZIP
No cal instal·lar-lo (portable)
ARM64 · EXE (Inno Setup) · Usuari actual
gcmuser-win-arm64-3.0.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-gcmuser-win-arm64-3.0.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\git-credential-manager-user"- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{aa76d31d-432c-42ee-844c-bc0bc801cef3}}_is1
- Carpeta d’instal·lació
- %LocalAppData%\Programs\Git Credential Manager
ARM64 · EXE (Inno Setup) · Tots els usuaris
gcm-win-arm64-3.0.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-gcm-win-arm64-3.0.1.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\git-credential-manager-user"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{fdfae50a-1bc1-4ead-9228-1e1c275e8d12}}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\Git Credential Manager
ARM64 · ZIP
No cal instal·lar-lo (portable)
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
$url = 'https://github.com/git-ecosystem/git-credential-manager/releases/download/v3.0.1/gcmuser-win-x64-3.0.1.exe'
$sha256 = '723F9E13C360D56F9B0DFDB0609B4EDD8A28C0B33ECCB4DE900039EA56B3517A'
$file = Join-Path $env:TEMP 'gcmuser-win-x64-3.0.1.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait $url = 'https://github.com/git-ecosystem/git-credential-manager/releases/download/v3.0.1/gcm-win-x64-3.0.1.exe'
$sha256 = 'B2DC87F5DEB70DD605ECA646E987EC9841CD7BE74453C6E3066AC50BB3D3C98B'
$file = Join-Path $env:TEMP 'gcm-win-x64-3.0.1.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait $url = 'https://github.com/git-ecosystem/git-credential-manager/releases/download/v3.0.1/gcmuser-win-arm64-3.0.1.exe'
$sha256 = '9BADD7B738C6687BC01E5DF2D5B637A709AFEFAE99D8C792A52843624197225D'
$file = Join-Path $env:TEMP 'gcmuser-win-arm64-3.0.1.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait $url = 'https://github.com/git-ecosystem/git-credential-manager/releases/download/v3.0.1/gcm-win-arm64-3.0.1.exe'
$sha256 = '704E5EA8BC5AF3DF2E3CF6228893B39673843A6BE8C30B4F6FC57C3D817C871E'
$file = Join-Path $env:TEMP 'gcm-win-arm64-3.0.1.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait