nixos-config/scripts/fetch-all-local-git-repo.sh
2025-03-01 18:45:27 +03:00

13 lines
354 B
Bash
Executable file

#!/usr/bin/env bash
# inspired from https://madalinaeleonorag.medium.com/git-fetch-pull-for-all-repos-once-82a0abff828b
cd ~/Code/
for i in */.git; do (
echo 📂 ${i/\/.git/}; cd $i/..;
echo 🔄 Fetching;
git fetch --all;
echo 🔽 Pulling;
git pull;
echo ————————————————————————);
done
cd ~/Code/