首页 > 其他 > 详细

uploading to multiple remote repositories

时间:2019-12-29 19:59:38      阅读:82      评论:0      收藏:0      [点我收藏+]

Saving below to a shell script file and execute it under the git local repositories with multiple remote counterpart:

#!/bin/bash
set -e -x
mapfile -t remote_url < <(git remote)
for i in "${remote_url[@]}"; do
    git push $i master
done

Known limitations:

  • single branch support
  • single threaded

uploading to multiple remote repositories

原文:https://www.cnblogs.com/zhaofeng-shu33/p/12115869.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!