How to use posh-git that comes with GitHub for Windows from custom shell?

前端 未结 3 1144
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 09:41

Installing GitHub for Windows is a nice way to get at once beginner\'s git Windows app, msysgit and posh-git - but you can only start the git shell with posh-git by calling \"Gi

3条回答
  •  粉色の甜心
    2021-01-30 10:13

    Following these directions, to install and use Posh-git in powershell do the following:

    1. git clone git://github.com/dahlbyk/posh-git.git to your choice of directory
    2. Permit executing scripts using either:
      1. Set-ExecutionPolicy RemoteSigned
      2. Set-ExecutionPolicy Unrestricted
    3. cd posh-git
    4. .\install.ps1
    5. . $PROFILE

    I originally followed directions given in the popular haacked.com tutorial (as pointed out by @dahlbyk and @CB) but had similar issues as the OP.

提交回复
热议问题