Git仓库更新shell By krisjin Jun 1 2015 更新日期:Jun 1 2015 文章目录 shell脚本 123456789101112131415#!/bin/shcd . reps="proA proB"arr=($reps)len=${#arr[@]}for ((i=0; i<$len; i++)); do if [ $i -eq 0 ] ;then cd ${arr[$i]} else cd ../${arr[$i]} fi git pull echo ${arr[$i]} pull end ...............done