# git pull
#!/bin/sh
for line in $(<projects);
do
git clone --bare git@192.168.40.4:/$line.git;
done
# git push
#!/bin/sh
for line in $(<projects);
do
cd ./${line##*/}.git;
git push --mirror;
cd ..;
done
# projects
yxt/manage/crontab
yxt/manage/announce
yxt/manage/announce_old
yxt/salesman_admin_ui
yxt/salesman_admin_api
yxt/topdf
yxt/sms
yxt/demo
yxt/sys_ui
yxt/gov_ui
yxt/html5
yxt/gov_api
yxt/static
yxt/admin_ui
yxt/api
yxt/gitbook
yxt/ios
yxt/admin_api
yxt/android
Git库批量转移
相关推荐
- 暂无文章