使用Git工具批量拉取代码
批量拉取Git代码第1步:将以下内容保存为updateall.txt#!/bin/shfor dir in $(ls -d */)docd $direcho "into $dir"if [ -d ".git" ]; thenecho "pulling $dir"git pullelif [ -d ".svn" ]; thensvn updateficd ..done第2步 : 将updateall
·
批量拉取Git代码
第1步:将以下内容保存为updateall.txt
#!/bin/sh
for dir in $(ls -d */)
do
cd $dir
echo "into $dir"
if [ -d ".git" ]; then
echo "pulling $dir"
git pull
elif [ -d ".svn" ]; then
svn update
fi
cd ..
done
第2步 : 将updateall文件 放到 : git安装目录 > usr > bin 下
第3步 : 进入项目根目录 输入updateall.txt 回车即可
更多推荐
所有评论(0)