How to use git sparse-checkout in 2.27+

前端 未结 2 1934
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-12 05:07

I was trying to reproduce the few tutorial steps from:

https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout

Which was made fo

2条回答
  •  死守一世寂寞
    2021-01-12 05:41

    Here is a solution that will populate only files in the root folder:

    $ git clone --filter=blob:none --sparse https://github.com/derrickstolee/sparse-checkout-example
    

    Then subsequent sparse-checkout calls work like a charm.

    Still no idea why the tutorial is broken.

提交回复
热议问题