windows - 从源代码安装 Git、从源代码安装 Post-Git,然后在 PowerShell 中加载 Posh 的步骤?

标签 windows git powershell posh-git

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 ):

  1. git.exe 的位置添加到您的 %PATH%
  2. 将 posh-git 克隆到您选择的目录
  3. 运行 posh-git 的 install.ps1 以在您的 $PROFILE 中安装默认提示

关于windows - 从源代码安装 Git、从源代码安装 Post-Git,然后在 PowerShell 中加载 Posh 的步骤?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17352343/

相关文章:

Git:如何删除现在在 gitignore 中但之前添加到 repo 中的文件

本地存储库的 Git checkout 修订版

PowerShell 团队基础服务器 2017

powershell - 查询 Azure Active Directory 的 UPN 和主 SMTP 地址,然后导出到 CSV

windows - 与 Windows 相比,为什么 Mac 上可用的独特颜色数量似乎有所不同?

c - 如何通过 Windows 上的 system() 函数将换行符作为参数传递?

windows - IIS 401.3 与 Windows 身份验证 2016

c# - Windows 服务和 Win 应用程序之间的通信

git - 在 git 提交期间运行脚本

windows - 在 3 个不同的子目录中创建 2 个子目录