Last active
March 28, 2017 15:31
-
-
Save blackenedstrang/6948728 to your computer and use it in GitHub Desktop.
Update all Git and SVN repos in folder
This file contains 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 characters
# 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