1. 下载 Git for Windows:访问 [Git官网](https://git-scm.com/download/win) 下载适用于Windows 11的Git安装程序。
2. 安装 Git:运行下载的安装程序,选择“Git from the command line”,然后点击“Next”。
3. 配置 Git:在“Select Components”页面,勾选“Use Git from the Windows Command Prompt”和“Use Git from the Windows Explorer”,然后点击“Next”。
4. 完成安装:接受许可协议,选择安装路径,点击“Next”,然后点击“Install”。
5. 验证安装:打开命令提示符(CMD),输入 `git --version`,如果显示版本信息,则表示Git CLI已成功安装。