クローンしたくない大量のcsvを含むgitリポジトリがあるため、git sparse-checkoutとこの投稿に出くわしました: https://github.blog/2020-01-17-bring -your-monorepo-down-to-size-with-sparse-checkout/
この投稿から、次のことを行いました。
git clone --no-checkout https://github.com/john_doe/repo-with-big-csv.git
cd repo-with-big-csv
git sparse-checkout init --cone
次に、を編集し.git/info/sparse-checkout
て以下を追加します (上記のページの例から変更)。
/*
!**/*.csv
しかし、それは正しく機能していないようです。一部のフォルダーが複製された後git pull
、一部のフォルダーは複製されません。また、警告が表示されることに気付きましたgit sparse-checkout list
。
warning: unrecognized pattern: '**/*.csv'
warning: disabling cone pattern matching
/*
!**/*.csv
特定のファイルタイプのみを無視する適切な方法は何ですか?