Skip to content

Instantly share code, notes, and snippets.

@geminixiang
Created August 31, 2023 16:50
Show Gist options
  • Save geminixiang/1c27da727f0a32033bfa4c968bd84848 to your computer and use it in GitHub Desktop.
Save geminixiang/1c27da727f0a32033bfa4c968bd84848 to your computer and use it in GitHub Desktop.
git只下載單一資料夾
# 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