Is it possible to do a sparse checkout without checking out the whole repository first?

后端 未结 14 1842
醉梦人生
醉梦人生 2020-11-22 09:32

I\'m working with a repository with a very large number of files that takes hours to checkout. I\'m looking into the possibility of whether Git would work well with this kin

14条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 10:04

    Yes, Possible to download a folder instead of downloading the whole repository. Even any/last commit

    Nice way to do this

    D:\Lab>git svn clone https://github.com/Qamar4P/LolAdapter.git/trunk/lol-adapter -r HEAD
    
    1. -r HEAD will only download last revision, ignore all history.

    2. Note trunk and /specific-folder

    Copy and change URL before and after /trunk/. I hope this will help someone. Enjoy :)

    Updated on 26 Sep 2019

提交回复
热议问题