Run in the powershell command line in sequence
1. (New-object net. WebClient). downloadstring ("http://psget.net/GetPsGet.ps1") | iex
2. Install-module posh-Git
If your system is 64-bit, an error may be reported.
"D: \ My databases \ Documents \ windowspowershell \ modules" is added to the psmodulepath environment variable
Creating powershell profile...
D: \ My database \ Documents ents \ windowspowershell \ nuget_profile.ps1
Cocould not find git command. Please create a git alias or add % ProgramFiles % \ git \ cmd to path.
Module posh-Git was successfully installed.
Git command cocould not be found. Please create an alias or add it to your path.
You only need to add the following command to the system environment variable:
Variable name: git_dir
Variable value: C: \ Program Files (x86) \ git \ cmd
Note that the variable value is the path to install git for your system.
Add git support in powershell