2016-03-07 95 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