つばろぐ

主に C#, .NET, Azure の備忘録です。たまに日記。

Git自身をアップデートするGitコマンド

最近知ったんですが、Git のバージョンアップを行うためのコマンドが Git 自身に用意されているようです。
git update-git-for-windows というコマンドです。

$ git update-git-for-windows -h
Usage: git update-git-for-windows [options]
Options:
        -g, --gui Use GUI instead of terminal to prompt
        -y, --yes Automatic yes to download and install prompt
Return code:
 0: no update available
         1: update available and user selected not to update
         2: update available and it was started

git update-git-for-windows でアップデートを実行すると、GUIインストーラーが動き出します。