2016-03-07 93 views

回答

0

转换svn的标签Git标签,然后通常使用它们作为你。

# Loop on all the remote tags 
git-for-each-ref refs/remotes/origin/tags | cut -d/-f 5- | while read ref 
do 

# Attach the tag to the desired commit 
git tag -a "$ref" -m"say farewell to SVN" "refs/remotes/origin/tags/$ref" 

# remove the old reference 
git push origin ":refs/heads/tags/$ref" 

# push it to your remote so your jenkins can use it 
git push origin tag "$ref" 

done 

你也可以阅读它在这里也:
https://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git

+0

谢谢,还没有尝试过,但似乎是一个很好的解决方案 – enthuguy