git 同步多个仓库的脚本
#!/bin/bash
function readdir()
{
for file in `ls $1`
do
if [ -d $1"/"$file ]; then
cd $1"/"$file
if [ -d ".git" ]; then
echo $1"/"$file
git pull
echo -e "\033[1;33m---------------------------------------------\033[0m"
fi
cd ..
readdir $1"/"$file
fi
done
}
echo -e "\033[1;34m[START]\033[0m"
readdir `pwd`
echo -e "\033[1;34m[END]\033[0m"
git 同步多个仓库的脚本
https://leec.me/e67aa03667f7/