Last active
April 26, 2021 08:31
-
-
Save JuanLengyel/7bfc2e62417d7609929fe640dda7d459 to your computer and use it in GitHub Desktop.
Applies a git command to all of the repositories found in the 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
@echo off | |
set /p git_command="Type your command: " | |
for /d %%i in (%cd%\*) do ( | |
echo ************************************************************************* | |
echo "%%i" | |
cd "%%i" | |
echo ----------------------------------------- | |
echo %git_command% | |
git %git_command% | |
echo ----------------------------------------- | |
echo ************************************************************************* | |
) | |
cd .. | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment