windows powershell支持git命令自动补全

  1. 执行命令` $PSVersionTable.PSVersion ` ,确定powershell版本2.0或更高

2. 命令 ` Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm `

3. 确认是否安装git , 未安装请先安装,执行`git –version` 确认

4. 执行命令 ` PowerShellGet\Install-Module posh-git -Scope CurrentUser ` 执行过程中会有询问,问就Y。

5. 进入一个有git init 的工作目录 ,执行命令 ` Import-Module posh-git ` ,会发现 cmd 提示发生变化,表示成功

6. enjoy

发表评论

邮箱地址不会被公开。 必填项已用*标注