Use Windows PowerShell ise to manage command windows and integrate GIT commands

Source: Internet
Author: User
Tags git commands

Written on 2018-09-03 (based on WIN10)

Open
    1. Win + S
    2. Input Ise
Operation

Use the new Power Shell tab primarily

Integrate git into the power Shell to prepare for installation
    1. Make sure your power Shell version is 5. X or Power Shell Core 6.0 (use $psversiontable.psversion to view version)

    2. Check whether the script execution rule is set to remotesigned or unrestricted (use Get-executionpolicy to view, use Set-executionpolicy Remotesigned-scope CURRENTUSER-CONFIRM)

    3. git commands to add to environment variables

Start installation
    1. Open PowerShell Ise

    2. Execute command powershellget\install-module posh-git-scope currentuser-allowprerelease-force or PowerShellGet\Update-Module Posh-git (update)

    3. Introduce and support all hosts for all users, open PowerShell under administrator privileges, execute command add-poshgittoprofile-allusers-allhosts

    4. Complete, restart PowerShell to

Add
    1. 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
    • Posh-git
    • PowerShell

Use Windows PowerShell ise to manage command windows and integrate GIT commands

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.