Skip to content

Instantly share code, notes, and snippets.

@hsaito
Last active September 19, 2017 09:13
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 hsaito/45faa793388db9b488cc5c1c37aa6863 to your computer and use it in GitHub Desktop.
Save hsaito/45faa793388db9b488cc5c1c37aa6863 to your computer and use it in GitHub Desktop.
$dir = Get-Location
[string]::Format("Base: {0}",$dir)
foreach ($d in Get-ChildItem -Directory $dir)
{
[String]::Format("Processing: {0}",$d)
Push-Location $d
git reset --hard
git pull origin
git push origin
Pop-Location
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment