vault backup: 2025-12-08 14:46:06

Affected files:
22.01. 軟體工具、設定/git/lfs.md
22.01. 軟體工具、設定/git/pull.md
This commit is contained in:
2025-12-08 14:46:06 +08:00
parent 1cd44f7813
commit 57f21af506
2 changed files with 45 additions and 0 deletions

View File

@@ -10,4 +10,14 @@ description:
git lfs track "*.psd"
```
## 用 `git lfs migrate` 把歷史中的大檔案改寫成 LFS
```shell
git lfs migrate import --include="path/to/your/large-file" --everything
```
## 移除已經 commit 的大檔案
```shell
git filter-repo --path "path/to/your/large-file" --invert-paths
```
# 參考來源