【发布时间】:2012-09-12 08:21:58
【问题描述】:
安装适用于 Windows 的 GitHub 是立即获得初学者的 git Windows 应用程序 msysgit 和 posh-git 的好方法 - 但您只能通过调用“GitHub.appref-ms --open-”来使用 posh-git 启动 git shell壳”。
我想做的是启动控制台,加载 powershell,并使用 Github for Windows 附带的 posh-git - 但我想不出将其加载到 powershell 中的方法。
更新:我不想单独安装 Git for Windows,因为 msysgit 已经安装。
通过调用 AppData\Local\Github 文件夹中的 shell1.ps1 脚本,我取得了一些进展——它确实让我调用了 git。但它不显示我所在的分支,与 GitHub for Windows 的“Git Shell”相反。
【问题讨论】:
-
@Christian - 不,查看更新的问题
标签: powershell github-for-windows posh-git