Created
August 30, 2011 06:41
-
-
Save jonnybest/1180336 to your computer and use it in GitHub Desktop.
Revisions
-
Jonathan Best revised this gist
Sep 6, 2011 . 1 changed file with 3 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,9 @@ $git = $env:programfiles+"\Git\cmd\git.cmd"; if (!$git) { Write-Host "Something went wrong. Please enter the path to git.cmd or git.exe:"; $git = Read-Host; Set-Variable -Name git -Value $git; } ls -name -Exclude *.* | foreach {cd .\$_ ; .$git pull origin master ; cd ..} Write-Host "Done."; -
Jonathan Best created this gist
Aug 30, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ if (!$git) { Write-Host "This is probably the first time you run this script. Please enter the path to git.cmd or git.exe:"; $git = Read-Host; Set-Variable -Name git -Value $git -Scope 1; } else { Write-Host "Git is located at " $git; # Something like "C:\Program Files\Git\cmd\git.cmd" } ls -name -Exclude *.* | foreach {cd .\$_ ; .$git pull origin master ; cd ..} Write-Host "Done.";