push し忘れているローカルの git repos を列挙する - 冬通りに消え行く制服ガールは、夢物語にリアルを求めない。 - subtech

screenshot

`locate /.git/`.split(/\n/).map {|l| l.gsub(%r|/\.git/.+|, "") }.uniq.each { |repo| Dir.chdir(repo) do head = `git rev-parse HEAD`.chomp remotes = `git rev-parse --remotes`.split(/\n/) unless remotes.include? head puts repo end end } このコードだと、登録してある remote のうち、少くとも一つに push されていればいい、っていうことになります。 なんかもっといい方法はないかしら

http://subtech.g.hatena.ne.jp/cho45/20080522/1211464271
http://b.hatena.ne.jp/entry/http://subtech.g.hatena.ne.jp/cho45/20080522/1211464271