TIL, you can sync a specific subdirectory only fro...
# today-i-learned
s
TIL, you can sync a specific subdirectory only from an entire Git repo! - Instead of cloning an entire Git repo in, say,
Users/me/Documents
(and the disconnect between my Dendron workspace and the repo contents...) - I can instead clone one subdirectory from the repo (like
blog-posts/
!!) to my
Dendron/vault/blog-posts
directory! - Git Commands: -
git clone --depth 1 --sparse <your_git_repo_url>
-
cd <repo_name>
-
git sparse-checkout set <subdirectory_name
- Reference: https://stackoverflow.com/a/52269934/5976033