summaryrefslogtreecommitdiff
path: root/fetch-all
blob: d556535459118f54c166e156acf968282d119169 (about) (plain) (blame)
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