jessemoore

InstallGitbyPS

Sep 26th, 2020 (edited)
1,063
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Install git
  2. #
  3. # set executionPolicy
  4. Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -Force
  5. #
  6. #Install Posh-git from PowerShell Gallery
  7. Install-Module posh-git -Scope CurrentUser -Force
  8. #
  9. # Load the Module
  10. Import-Module posh-git -Force
  11. #
  12. #make module load by default
  13. Add-PoshGitToProfile -AllHosts​​​​​​​
  14.  
RAW Paste Data