winget install Git.Git
winget install git で実行すると,以下のように「どれインストールしたいの?」と聞き返されます.
PS C:\Users\dolphin> winget install git
複数のパッケージが入力条件に一致しました。入力内容を修正してください。
名前 ID ソース
----------------------------
My Git 9NLVK2SL2SSP msstore
Git Git.Git winget
Git Microsoft.Git winget
これだけの情報だと,どちらを選択すべきか判断できません.
それぞれの説明を表示させてみます.
PS C:\Users\dolphin> winget show Git.Git
(省略)
説明:
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike.
ホーム ページ: https://gitforwindows.org/
(省略)
インストーラーの URL: https://github.com/git-for-windows/git/releases/download/v2.47.1.windows.1/Git-2.47.1-64-bit.exe
(省略)
PS C:\Users\dolphin> winget show Microsoft.Git
(省略)
説明:
This is microsoft/git, a special Git distribution to support monorepo scenarios. If you are not working in a monorepo, you are likely searching for Git for Windows instead of this codebase.
In addition to the Git command-line interface (CLI), microsoft/git includes the Scalar CLI to further enable working with extremely large repositories. Scalar is a tool to apply the latest recommendations and use the most advanced Git features.
(省略)
インストーラーの URL: https://github.com/microsoft/git/releases/download/v2.47.0.vfs.0.3/Git-2.47.0.vfs.0.3-64-bit.exe
(省略)
"モノレポ"とはなにかの説明がありませんが,普遍的に使用できるのはGit.Gitの方であるようです.ギットギトの方を選ぶと覚えておけば良さそうですね.