From 4d2d3d5780b327bee3513e3d3097835493f95948 Mon Sep 17 00:00:00 2001 From: MaNan Date: Thu, 16 Apr 2026 15:04:56 +0800 Subject: [PATCH] Refactor LFS configuration and enhance documentation for large file handling --- .gitattributes | 5 +---- notes/git.md | 2 ++ notes/starter.md | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitattributes b/.gitattributes index 2b466ce..56c163c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -124,7 +124,4 @@ *.nii lfs *.ome lfs *.map lfs -*.mrc lfs - -notes/assets/*.png -lfs -notes/assets/*.jpeg -lfs \ No newline at end of file +*.mrc lfs \ No newline at end of file diff --git a/notes/git.md b/notes/git.md index 6f95405..f587519 100644 --- a/notes/git.md +++ b/notes/git.md @@ -28,6 +28,8 @@ flowchart LR > 或 Bash 执行 `git clone [repo.git]` +> 默认不拉取大文件,以确保本地仓库体积 +> Bash 执行 `git lfs pull --include [folder]` 来下载仅需要的大文件 **2. 创建自己的个人分支** diff --git a/notes/starter.md b/notes/starter.md index 37f8596..0f2fd45 100644 --- a/notes/starter.md +++ b/notes/starter.md @@ -27,9 +27,10 @@ git config --global user.email  [your-email] 初始化 lfs 以获取对大文件的支持 ```bash -git lfs install +git lfs install --skip-smudge ``` + ## 安装 VS Code VS Code 是最基础的 IDE,AI 编程 IDE 都基于它的源码,例如Cursor。