Written on 2018-09-03 (based on WIN10)
Open
- Win + S
- Input Ise
Operation
Use the new Power Shell tab primarily
Integrate git into the power Shell to prepare for installation
Make sure your power Shell version is 5. X or Power Shell Core 6.0 (use $psversiontable.psversion to view version)
Check whether the script execution rule is set to remotesigned or unrestricted (use Get-executionpolicy to view, use Set-executionpolicy Remotesigned-scope CURRENTUSER-CONFIRM)
git commands to add to environment variables
Start installation
Open PowerShell Ise
Execute command powershellget\install-module posh-git-scope currentuser-allowprerelease-force or PowerShellGet\Update-Module Posh-git (update)
Introduce and support all hosts for all users, open PowerShell under administrator privileges, execute command add-poshgittoprofile-allusers-allhosts
Complete, restart PowerShell to
Add
- In PowerShell Ise, direct CTRL + C may always prompt for stopping in the lower-right corner and actually does not stop, so this is the way to kill a process to turn it off
- Mode one: Stop-process-name ' node ' (all node processes are closed)
- Mode two: get-process node view all the processes associated with node (mainly look at the ID), and then execute the Stop-process-id ID number to close the corresponding node process
Reference
Use Windows PowerShell ise to manage command windows and integrate GIT commands