From 1c1a7c4c39460957d09dec251ed8d532587ec0ac Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 2 Aug 2016 22:55:01 +0300 Subject: [PATCH] List repositories not pushed to origin --- ls-not-pushed | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 ls-not-pushed 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"' -- 2.39.5