Version control git svn中断了,然后我丢失了所有的标签,如何修复?
我将使用git svn clone-s从svn repo(在centos上)克隆代码svn://xxx,然后由于奇怪的问题而中断,错误消息如下:Version control git svn中断了,然后我丢失了所有的标签,如何修复?,version-control,nginx,centos,git-svn,Version Control,Nginx,Centos,Git Svn,我将使用git svn clone-s从svn repo(在centos上)克隆代码svn://xxx,然后由于奇怪的问题而中断,错误消息如下: Following parent with do_switch Successfully followed parent Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-mult
Following parent with do_switch
Successfully followed parent
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/SVN/Core.pm line 584.
Network connection closed unexpectedly: at /usr/libexec/git-core/git-svn line 2693
然后,我使用
time git svn fetch -r HEAD
一切似乎进展顺利,最终成功克隆了svn回购协议:
W: -empty_dir: trunk/src/os/win32/ngx_gui.c
W: -empty_dir: trunk/src/os/win32/ngx_gui.h
W: -empty_dir: trunk/src/os/win32/ngx_gui_resources.h
W: -empty_dir: trunk/src/os/win32/ngx_shared.h
W: -empty_dir: trunk/src/os/win32/ngx_types.h
r4817 = 7b58fc00b5b8ebb0544053ecf63e53b28935f15b (refs/remotes/trunk)
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 12449, done.
Compressing objects: 100% (12177/12177), done.
Writing objects: 100% (12449/12449), done.
Total 12449 (delta 9475), reused 0 (delta 0)
Checked out HEAD:
svn://svn.nginx.org/nginx/trunk r4817
real 0m9.630s
user 0m6.015s
sys 0m1.870s
奇怪的是,我的本地git repo中没有从svn repo克隆的标签:
[root@home nginx]# git branch
* master
[root@home nginx]# git tag // no tags at all:(
[root@home nginx]# svn ls svn://svn.nginx.org/nginx/branches | wc -l
7
[root@home nginx]# svn ls svn://svn.nginx.org/nginx/tags | wc -l
388
事实上,svn repo中有388个标记,那么如何修复我的local.git repo呢
我是否必须从远程svn服务器重新启动git clone
我尝试过很多次,但都遇到了相同的问题:(基本上git svn不支持将标记作为git标记。为了将svn标记转换为git标记,您可以使用:
- (+如果您无法使用SVN存储库访问服务器,则可能会这样做)
- 用于参考更新的git svn+命令: “git refs/tags/TAGNAME refs/remotes/tags/TAGNAME”
- ,如果您想要一些UI而不是编写脚本