Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Forked from JuanLengyel/git_apply_all.bat
Created April 26, 2021 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandrabosk/e7974a8f4bf2f399a91e7ab1e8832f05 to your computer and use it in GitHub Desktop.
Save sandrabosk/e7974a8f4bf2f399a91e7ab1e8832f05 to your computer and use it in GitHub Desktop.
Applies a git command to all of the repositories found in the current folder
@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