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

前端 未结 3 1146
爱一瞬间的悲伤
爱一瞬间的悲伤 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 09:51

    From http://haacked.com/archive/2012/05/21/introducing-github-for-windows.aspx, put this in your profile to load posh-git from GitHub for Windows:

    # If Posh-Git environment is defined, load it.
    if (test-path env:posh_git) {
        . $env:posh_git
    }
    

提交回复
热议问题