一键push 到 所有 git 仓库

2015-04-12 0 779
一键push 到 所有 git 仓库
#!/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

遇见资源网 ruby 一键push 到 所有 git 仓库 http://www.ox520.com/16321.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务