没有 bash 的 Windows 上的 Git

Sim*_*mon 7 windows bash git git-bash windows-10

是否可以在不安装 git bash 的情况下在 Windows 上安装 git?

既然 bash 可以在 Windows 上使用,我更愿意使用它,而不是有这么多的 shell。

这甚至是推荐/可能的方法吗?或者我应该安装 git bash 吗?

小智 2

Windows Git 安装程序确实有一些配置选项;不过,我不记得 bash shell 是否是可选部分之一。也就是说,没有理由必须为 git 使用 bash shell。您可以从 cmd 以及 PowerShell 运行 git 命令。

有一个很好的插件组件可以通过 git 集成来增强 PowerShell。我所有的 git 交互都是通过 PowerShell 进行的。我从来没有打开过 bash shell,假设它甚至是用 git 安装的。