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

如下面显示的例子,由于原先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伐。

reply all (1)
给我你的怀抱

You can add --revision when cloning to specify which svn version to start cloning from.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!