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:
@@ -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
|
||||
```
|
||||
|
||||
# 參考來源
|
||||
Reference in New Issue
Block a user