git export from github remote repository

前端 未结 10 1303
北恋
北恋 2020-12-07 13:50

I\'d like to export from github remote repository, not cloning it. Similar to svn export, I do not want to get .git folder with it. I can work around it by cloning and remov

10条回答
  •  暖寄归人
    2020-12-07 14:49

    If your goal is to limit the quantity of information exchanged with the server, have you considered using clone with --depth? You would still need to remove the (much reduced) .git subdirectory though:

    git clone --depth=1 git@github.com:xxx/yyy.git && rm -rf yyy/.git
    

提交回复
热议问题