增量拉取/同步spring源码
git clone https://github.com/spring-projects/spring-framework.git --depth 1
git fetch --unshallow
git fetch origin --unshallow
for branch in $(git branch -a | grep origin | awk -F '/' '{print $NF}' | sort -u); do
echo "---------$branch---------"
git fetch origin $branch:$branch
git push gitea $branch:$branch
done
for tag in $(git tag -l | sort -u);do
echo "---------$tag---------"
git fetch origin $tag:$tag
git push gitea $tag:$tag
done

浙公网安备 33010602011771号