1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash # Fetch all your repos that have a remote cd $HOME find . -type d -name '*.git' | while read -r repo; do echo "$repo" pushd "$repo" >/dev/null git -c credential.interactive=false fetch --all git update-server-info popd >/dev/null done