git sparse checkout - deptno/deptno.github.io GitHub Wiki
git-sparse-checkout
νΉμ μμΉλ§ checkout
λ°λ κΈ°λ₯μ΄λ€.
λ£¨νΈ λλ ν 리μ νμΌλ€μ μλμΌλ‘ λ°μμ§λ€.
νΉμ λλ ν 리λ₯Ό μ§μ ν μ μλ€.
--no-tags
--depth 1
μμ κ°μ μ΅μ
μ ν¨κ» μ¬μ©νμ¬ λ μ΅μ νλ λ°μ΄ν°λ₯Ό checkout
ν μ μλ€.
- https://git-scm.com/docs/git-sparse-checkout
- CONE PATTERN SET
μ¬μ©λ²
git init
# sparse checkout κΈ°λ₯μ enable νλ€.
# --cone, CONE PATTERN SET μ νμ±ννλ€.
git sparse-checkout init --cone
# λ΄λ € λ°μ λλ ν 리λ₯Ό μ ννλ€.
git sparse-checkout set dir1 \
dir2 \
dir3/sub/path
git remote add origin [email protected]:USER/REPOSITORY.git
git fetch --no-tags --depth 1 origin BRANCH
git checkout --force BRNACH