git svn checkout 时 分支的某个revision反复checkout出来,该怎么办?
伊谢尔伦
伊谢尔伦 2017-05-02 09:26:11
0
1
805

如下面显示的例子,由于原先SVN被人为的误删误移过,导致revision其实不是很规范

然后用 git svn 时 某个特定的revision会被不停的checkout出来,由于用的Windows平台,已经超过文件路径的最大值,导致不能顺利checkout,不知道 有没有同学对这方面有经验?

refs/remotes/origin/Some_Branch@21
refs/remotes/origin/Some_Branch@21-
refs/remotes/origin/Some_Branch@21--
refs/remotes/origin/Some_Branch@21---
refs/remotes/origin/Some_Branch@21----
refs/remotes/origin/Some_Branch@21-----
refs/remotes/origin/Some_Branch@21------
refs/remotes/origin/Some_Branch@21-------
refs/remotes/origin/Some_Branch@21--------
refs/remotes/origin/Some_Branch@21---------
refs/remotes/origin/Some_Branch@21----------
refs/remotes/origin/Some_Branch@21-----------
refs/remotes/origin/Some_Branch@21------------
refs/remotes/origin/Some_Branch@21-------------
refs/remotes/origin/Some_Branch@21--------------
refs/remotes/origin/Some_Branch@21---------------
refs/remotes/origin/Some_Branch@21----------------
refs/remotes/origin/Some_Branch@21-----------------
refs/remotes/origin/Some_Branch@21------------------
refs/remotes/origin/Some_Branch@21-------------------
refs/remotes/origin/Some_Branch@21--------------------
refs/remotes/origin/Some_Branch@21---------------------
refs/remotes/origin/Some_Branch@21----------------------
refs/remotes/origin/Some_Branch@21-----------------------
refs/remotes/origin/Some_Branch@21------------------------
refs/remotes/origin/Some_Branch@21-------------------------
refs/remotes/origin/Some_Branch@21--------------------------
refs/remotes/origin/Some_Branch@21---------------------------
refs/remotes/origin/Some_Branch@21----------------------------
refs/remotes/origin/Some_Branch@21-----------------------------
refs/remotes/origin/Some_Branch@21------------------------------
refs/remotes/origin/Some_Branch@21-------------------------------
refs/remotes/origin/Some_Branch@21--------------------------------
refs/remotes/origin/Some_Branch@21---------------------------------
refs/remotes/origin/Some_Branch@21----------------------------------
refs/remotes/origin/Some_Branch@21-----------------------------------
refs/remotes/origin/Some_Branch@21------------------------------------
refs/remotes/origin/Some_Branch@21-------------------------------------
refs/remotes/origin/Some_Branch@21--------------------------------------
refs/remotes/origin/Some_Branch@21---------------------------------------
refs/remotes/origin/Some_Branch@21----------------------------------------
refs/remotes/origin/Some_Branch@21-----------------------------------------
refs/remotes/origin/Some_Branch@21------------------------------------------
refs/remotes/origin/Some_Branch@21-------------------------------------------
refs/remotes/origin/Some_Branch@21--------------------------------------------
refs/remotes/origin/Some_Branch@21---------------------------------------------
refs/remotes/origin/Some_Branch@21----------------------------------------------
refs/remotes/origin/Some_Branch@21-----------------------------------------------
...省略N行

update:
楼主考虑的是从svn迁移到git,所以要尽量保留提交记录

update:
楼主用了 --no-metadata 参数

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

모든 응답(1)
给我你的怀抱

복제 시 --revision을 추가하여 복제를 시작할 svn 버전을 지정할 수 있습니다.

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!