From: Oleg Broytman Date: Tue, 2 Aug 2016 19:55:01 +0000 (+0300) Subject: List repositories not pushed to origin X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=1c1a7c4c39460957d09dec251ed8d532587ec0ac List repositories not pushed to origin --- diff --git a/ls-not-pushed b/ls-not-pushed new file mode 100755 index 0000000..da3b801 --- /dev/null +++ b/ls-not-pushed @@ -0,0 +1,5 @@ +#! /bin/sh + +exec "`dirname \"$0\"`"/do-all \ + 'test "$g" = "$d/.git" || continue; cd "$d" &&' \ + 'test -n "`git status -b | grep "ahead\|behind"`" && echo "$d"'