在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.txt
Initialized 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 repositories
r3775 = f8d188fd082fadeb2cb86b525987a540bb60e288 (refs/remotes/git-svn)
A test
W: +empty_dir: instance_manager
W: +empty_dir: meta_server
r3777 = 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 0
drwxr-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/
最後問題是有個user沒有在autor.txt中設置,git svn clone 退出了,但這個提示訊息不容易注意到
git-svn 克隆
svn co -r HEAD url