一键push 到 所有 git 仓库

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

def t s
  p s
  Thread.new { system s }
end

`git remote`.each_line do |x|
  t "git push #{x.strip} master "
end

sleep 0.3 while Thread.list.size != 1