Skip to content

Instantly share code, notes, and snippets.

@sergeyt
Last active March 21, 2016 12:35
Show Gist options
  • Save sergeyt/8069450 to your computer and use it in GitHub Desktop.
Save sergeyt/8069450 to your computer and use it in GitHub Desktop.
cmd script to pull and update all repositories in current folder
set root=%~dp0
for /f %%i in ('dir . /b /ad') do (
cd %root%%%i
if exist ".git" (
git pull
)
if exist ".hg" (
hg pull -u
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment