Skip to content

Instantly share code, notes, and snippets.

@AbraaoAlves
Created February 9, 2012 12:52
Show Gist options
  • Save AbraaoAlves/1779808 to your computer and use it in GitHub Desktop.
Save AbraaoAlves/1779808 to your computer and use it in GitHub Desktop.
Git for power shell
#Com git instalado, via powershell:
#antes de executar o ps1: Set-ExecutionPolicy Unrestricted | responder S
if(!$env:path.Contains("C:\Program Files (x86)\Git\bin"))
{
$env:path += ";C:\Program Files (x86)\Git\bin";
}
if(!$env:path.Contains("C:\Program Files (x86)\Git\cmd"))
{
$env:path += ";C:\Program Files (x86)\Git\cmd";
}
(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