1、下载post-git离线安装包 地址:https://files.cnblogs.com/files/xcr1234/posh-git-master.zip 2,用Powershell执行install.ps1 ./install.ps1 3.用管理员权限打开powershell,修改策略: set-executionpolicy remotesigned 搞定