git svn clone无法获取代码

【字号: 日期:2023-09-29浏览:24作者:雯心

问题描述

在gitlab上创建了一个project, 然后在linux 里 git svn clone project_svn_url, 最后成功push到gitlab上。 但是,在gitlab上把这个project 删除了, 再创建了一个 同名 project, 又在linux 上重做 git svn clone, 再也得获取不了代码,只得到一个空目录, 已经确定svn 上有代码的.不知怎么回事. 求助各位,谢谢

admin$ git svn clone http://project_svn_url --no-metadata --authors-file=author.txtInitialized empty Git repository in /myworkspath/project/.git/...W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.This may take a while on large repositoriesr3775 = f8d188fd082fadeb2cb86b525987a540bb60e288 (refs/remotes/git-svn) A testW: +empty_dir: instance_managerW: +empty_dir: meta_serverr3777 = d0aaf8b8aa4788d5cdbbb18e1277e614b08aedcd (refs/remotes/git-svn) A instance_manager/APScheduler-3.0.4/apscheduler/executors/gevent.py A instance_manager/APScheduler-3.0.4/apscheduler/executors/pool.py A instance_manager/APScheduler-3.0.4/apscheduler/executors/base.py...

完了之后只是个空目录

admin $ ll project/total 0drwxr-xr-x 3 admin staff 102 1 13 21:53 ./drwxr-xr-x 10 admin staff 340 1 13 21:53 ../drwxr-xr-x 12 admin staff 408 1 13 21:54 .git/

问题解答

回答1:

最后问题是有个user没有在autor.txt中设置,git svn clone 退出了,但这个提示信息不容易注意到

回答2:

git-svn clone

回答3:

svn co -r HEAD url

相关文章: