HOWTO: git - svn - tags - upgrading - etc
lrytz opened this issue · comments
Lukas Rytz commented
Initial clone
git svn clone svn://svn.forge.objectweb.org/svnroot/asm -T trunk/asm -t tags --prefix=upstream/
Create Tags (from SO), prints a list of commands that create the tags:
git for-each-ref --format="%(refname:short) %(objectname)" refs/remotes/upstream/tags | cut -d / -f 3- |
while read ref
do
echo git tag -a $ref -m '"import tag from svn"'
done
Push Tags
git push --tags
Get Latest from SVN
git svn fetch
git merge upstream/trunk
==> create tags again