Git Credential Manager (User)を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Git.GCM -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Git.GCM -e --silentwinget uninstall --id Git.GCM -e --silentインストーラー別
64ビット · EXE(Inno Setup) · 現在のユーザー
サイレントインストール
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"- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{aa76d31d-432c-42ee-844c-bc0bc801cef3}}_is1
- インストール先フォルダー
- %LocalAppData%\Programs\Git Credential Manager
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
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"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{fdfae50a-1bc1-4ead-9228-1e1c275e8d12}}_is1
- インストール先フォルダー
- %ProgramFiles%\Git Credential Manager
64ビット · ZIP
インストール不要(ポータブル)
ARM64 · EXE(Inno Setup) · 現在のユーザー
サイレントインストール
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"- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{aa76d31d-432c-42ee-844c-bc0bc801cef3}}_is1
- インストール先フォルダー
- %LocalAppData%\Programs\Git Credential Manager
ARM64 · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
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"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{fdfae50a-1bc1-4ead-9228-1e1c275e8d12}}_is1
- インストール先フォルダー
- %ProgramFiles%\Git Credential Manager
ARM64 · ZIP
インストール不要(ポータブル)
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-git-credential-manager-user.ps1
$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 install-git-credential-manager-user.ps1
$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 install-git-credential-manager-user.ps1
$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 install-git-credential-manager-user.ps1
$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