0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

スパースチェックアウトのやり方

Last updated at Posted at 2024-04-17
REM .gitディレクトリのみがcloneされる
git clone --sparse --filter=blob:none --no-checkout [リポジトリURL]

REM さらにシャローコピーも(最速clone)
git clone --depth=1 --sparse --filter=blob:none --no-checkout [リポジトリURL]

REM チェックアウト対象のセット(それまでの内容を破棄して上書き)
git sparse-checkout set [ディレクトリ名]

REM チェックアウト対象の追加(それまでの内容を残して追加)
git sparse-checkout add [ディレクトリ名]

REM チェックアウト対象の確認
git sparse-checkout list
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?