Skip to content

Instantly share code, notes, and snippets.

@blackenedstrang
Last active March 28, 2017 15:31
Show Gist options
  • Save blackenedstrang/6948728 to your computer and use it in GitHub Desktop.
Save blackenedstrang/6948728 to your computer and use it in GitHub Desktop.
Update all Git and SVN repos in folder
# pull all Git repos inside a folder
dir -r -i .git -fo | % { pushd $_.fullname; cd ..; write-host -fore yellow (get-location).Path; git pull --rebase; git status; git gc; popd };
# update all SVN repos
# dir -r -i .svn -fo | % { pushd $_.fullname; cd ..; write-host -fore yellow (get-location).Path; svn update; svn status; popd }
Read-Host "Press ENTER to exit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment