Advertisement
jessemoore

InstallGitbyPS

Sep 26th, 2020 (edited)
1,360
0
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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement