Created
August 31, 2023 16:50
-
-
Save geminixiang/1c27da727f0a32033bfa4c968bd84848 to your computer and use it in GitHub Desktop.
git只下載單一資料夾
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://dev.to/kiwicopple/quick-tip-clone-a-single-folder-from-github-44h6 | |
# 1. Copy an empty repo | |
git clone --no-checkout https://github.com/bitnami/containers.git | |
# 2. Move into the empty repo | |
cd containers | |
# 3. Initialize sparse-checkout | |
git sparse-checkout init --cone | |
#4. Checkout the folder | |
git sparse-checkout set bitnami/pytorch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment