How to clone/pull a git repository, ignoring LFS?

前端 未结 2 1290
南笙
南笙 2020-12-14 00:46

Is there a way to explicitly ignore all git-lfs files on clone and pull?
(besides uninstalling git-lfs which I ended up doing).

2条回答
  •  别那么骄傲
    2020-12-14 01:14

    I'm currently struggling myself to find a clean way to download (and remove afterwards) large files with git-lfs.

    However, there is a third alternative to the post of @Marcelo Ávila de Oliveira:

    git lfs install --skip-smudge

    will define globally to skip lfs downloads initially, when cloning repositories.


     

    EDIT: I've created a tutorial for basic git-lfs handling. Any feedback and suggestions are very welcome.

    You can find it at:

    https://sabicalija.github.io/git-lfs-intro/

    or pull it via:

    git clone https://github.com/sabicalija/git-lfs-intro.git

提交回复
热议问题