2016-10-22 17:52:48 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
wd="$(pwd)"
|
|
|
|
temp="$(mktemp)"
|
|
|
|
|
|
|
|
find /data -name '.git' -exec dirname \{\} \; | while read gitrepo; do
|
|
|
|
cd "$gitrepo"
|
|
|
|
echo "$gitrepo"
|
|
|
|
|
|
|
|
git remote | while read remote; do
|
|
|
|
git fetch --prune "$remote"
|
|
|
|
done 2>&1 | sed 's/^/ /'
|
2017-05-09 08:51:39 +02:00
|
|
|
|
|
|
|
git status | grep behind | sed 's/^/ /'
|
2016-10-22 17:52:48 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
cd "$wd"
|