0
0
mirror of https://gitea.com/gitea/docs.git synced 2025-05-31 14:20:45 +00:00
Files
appleboy dbfa0ba454 docs: add zh-tw folder (#195)
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/195
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: appleboy <appleboy.tw@gmail.com>
Co-committed-by: appleboy <appleboy.tw@gmail.com>
2025-04-04 23:28:16 +00:00

43 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
date: "2019-10-06T08:00:00+05:00"
slug: "git-lfs-setup"
sidebar_position: 12
aliases:
- /zh-tw/git-lfs-setup
---
# Git LFS 設置
要使用 Gitea 的內置 LFS 支持,您必須更新 `app.ini` 文件:
```ini
[server]
; 啟用 git-lfs 支持。true 或 false默認為 false。
LFS_START_SERVER = true
[lfs]
; 您的 lfs 文件所在的位置,默認為 data/lfs。
PATH = /home/gitea/data/lfs
```
:::note
LFS 服務器支持需要在服務器上安裝至少 Git v2.1.2
:::
# Git LFS 純 SSH 協議
LFS 純 SSH 協議支持純粹通過 SSH 進行 LFS 連接
(無需為 Gitea 服務器公開 HTTP 端點)。
可以通過配置選項 `server.LFS_ALLOW_PURE_SSH` 啟用對它的支持:
```ini
[server]
LFS_ALLOW_PURE_SSH = true
```
:::note
由於 `git-lfs` 客戶端中存在一個未解決的錯誤,該選項目前默認設置為 false該錯誤會導致 SSH 傳輸掛起https://github.com/git-lfs/git-lfs/pull/5816
可以通過在所有客戶端機器上設置 git 配置來解決此問題:
`git config --global lfs.ssh.automultiplex false`
:::