【发布时间】:2015-12-30 23:00:25
【问题描述】:
我已经从https://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git 安装了Git 版本Git-1.8.3-preview20130601.exe。我还安装了 PoshGit,并且正在使用 Windows PowerShell。
当我启动 PowerShell 时,我得到了
警告:找不到 ssh-agent
我可以在命令行中输入ssh-agent.exe 并启动 ssh 代理。我还能够执行所有 Git 命令,所以我的 Git 路径可能是正确的。
我一直关注this guide 以使 Git 在 Windows 中正常工作。
我已经尝试过他将$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin" 添加到我的 Microsoft.PowerShell_profile.ps1 文件中的建议,但没有奏效。它没有任何区别。我正在寻找除该解决方案之外的其他建议。
为了完整起见,这是我的 Microsoft.PowerShell_profile.ps1 文件
# Load posh-git example profile
. 'C:\Users\________\code\posh-git\profile.example.ps1'
$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin"
【问题讨论】:
标签: git powershell