Skip to content

Instantly share code, notes, and snippets.

@AlbertoMonteiro
Forked from AbraaoAlves/GitForPS1.ps1
Created February 9, 2012 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlbertoMonteiro/1779883 to your computer and use it in GitHub Desktop.
Save AlbertoMonteiro/1779883 to your computer and use it in GitHub Desktop.
Git for power shell
#Com git instalado, via powershell:
Set-ExecutionPolicy Unrestricted
if(!$env:path.Contains("C:\Program Files (x86)\Git\cmd"))
{
$env:path += ";C:\Program Files (x86)\Git\cmd"
}
if(!$env:path.Contains("C:\Program Files (x86)\Git\bin"))
{
$env:path += ";C:\Program Files (x86)\Git\bin;"
}
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
install-module posh-git
cd $env:UserProfile\Documents\WindowsPowerShell
.\Microsoft.PowerShell_profile.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment