Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Forked from JuanLengyel/git_fetch_all.bat
Created April 26, 2021 08:32
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/9b507cdd76fc0dcc01344ff3da6c9d55 to your computer and use it in GitHub Desktop.
Save sandrabosk/9b507cdd76fc0dcc01344ff3da6c9d55 to your computer and use it in GitHub Desktop.
Fetch from all remote for all the repositories in current directory
@echo off
for /d %%i in (%cd%\*) do (
echo *************************************************************************
echo "%%i"
cd "%%i"
echo -----------------------------------------
echo fetch --all -v
git fetch --all -v
echo -----------------------------------------
echo *************************************************************************
)
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment