Last active
March 21, 2016 12:35
-
-
Save sergeyt/8069450 to your computer and use it in GitHub Desktop.
cmd script to pull and update all repositories in current folder
This file contains hidden or 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
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