#!/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/