Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$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