zoukankan      html  css  js  c++  java
  • powershell里添加对git的支持

    在powershell命令行里依次运行

    1. 

     (new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex

    2.  

    install-module posh-git

    如果你的系统是64位的,可能会报错

    "D:我的资料库DocumentsWindowsPowerShellModules" is added to the PSModulePath environment variable
    Creating PowerShell profile...
    D:我的资料库DocumentsWindowsPowerShellNuGet_profile.ps1
    Could not find git command. Please create a git alias or add %ProgramFiles%Gitcmd to PATH.
    Module posh-git was successfully installed.
    git command could not be found. Please create an alias or add it to your PATH.

    这时只要在系统环境变量里加入如下命令即可

    变量名:GIT_DIR

    变量值:C:Program Files (x86)Gitcmd

    注意变量值为你系统安装git的路径位置

  • 相关阅读:
    ACM-ICPC 2018 南京赛区网络预赛 J.Sum
    汉诺塔
    汉诺塔
    D
    D
    数学小定理
    数学小定理
    Python index()方法
    Python endswith()方法
    Python encode()方法
  • 原文地址:https://www.cnblogs.com/Jeffiy/p/4006901.html
Copyright © 2011-2022 走看看