Skip to content

Instantly share code, notes, and snippets.

@gerjantd
Created October 16, 2012 09:32
Show Gist options
  • Save gerjantd/3898311 to your computer and use it in GitHub Desktop.
Save gerjantd/3898311 to your computer and use it in GitHub Desktop.
Shell/git: show diff between local and remote master for all repos in current dir
gerjan@peertje:~/git/svl01-int-p.rivm.nl$ for f in `find . -mindepth 1 -maxdepth 1 -type d`; do echo $f; pushd .; cd $f; git diff --shortstat master origin/master; popd; echo; done
./ttapp
~/git/svl01-int-p.rivm.nl ~/git/svl01-int-p.rivm.nl
~/git/svl01-int-p.rivm.nl
./springpad-mvc-ro
~/git/svl01-int-p.rivm.nl ~/git/svl01-int-p.rivm.nl
~/git/svl01-int-p.rivm.nl
./divocos
~/git/svl01-int-p.rivm.nl ~/git/svl01-int-p.rivm.nl
16 files changed, 110 insertions(+), 305 deletions(-)
~/git/svl01-int-p.rivm.nl
./rrapp
~/git/svl01-int-p.rivm.nl ~/git/svl01-int-p.rivm.nl
~/git/svl01-int-p.rivm.nl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment