Use git partilly clone #30

Closed
opened 2023-06-09 11:01:25 +00:00 by lunny · 1 comment
Owner

Since we just need docs directory currently, we should only clone that directory and exclude other directories.

Since we just need docs directory currently, we should only clone that directory and exclude other directories.
Author
Owner
git clone --filter=blob:none  --no-checkout <url>
cd <dir>
git config core.sparsecheckout true
echo "docs/*" > .git/info/sparse-checkout
git checkout
``` git clone --filter=blob:none --no-checkout <url> cd <dir> git config core.sparsecheckout true echo "docs/*" > .git/info/sparse-checkout git checkout ```
lunny referenced this issue from a commit 2023-07-28 05:52:37 +00:00
lunny closed this issue 2023-07-28 05:52:37 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/gitea-docusaurus#30
No description provided.