Pro Git Installing Git article说:
If you can, it's generally useful to install Git from source...
Phil Haack's blog post在 Posh-Git 上说:
Once you have Posh-Git loaded up, your PowerShell window lights up with extra...
还有 Posh-Git repository安装说明给出了高级安装说明。
这三个链接一起提供了在本地设置和使用 Git 的高级 map ,但没有深入细节。
因此,我们需要的是安装 Git、安装 Posh-Git,然后加载 Posh 的分步指南。
最佳答案
查看 https://github.com/msysgit/msysgit用于为 Windows 构建 Git。 (就其值(value)而言,我从未在 Windows 上构建过 Git,也不认为自己错过了。)
构建 Git 后(或 installed ):
- 将
git.exe
的位置添加到您的%PATH%
- 将 posh-git 克隆到您选择的目录
- 运行 posh-git 的
install.ps1
以在您的$PROFILE
中安装默认提示
关于windows - 从源代码安装 Git、从源代码安装 Post-Git,然后在 PowerShell 中加载 Posh 的步骤?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17352343/