Files
openchamber/packages/docs/content/docs/zh-cn/git-identities.mdx
T
Bohdan Triapitsyn 967704a9b9 docs: add OpenChamber feature docs and translations (#1400)
* docs: add OpenChamber feature docs and translations

Add 30 new docs pages covering OpenChamber-specific workflows and setup:
OpenCode server, providers/models/agents, MCP, skills, commands & snippets,
usage, projects, context, notes/todos/plans, scheduled tasks, project actions,
preview, worktrees, multi-run, git & GitHub, magic prompts, git identities,
mobile/PWA, security, notifications, voice, project icons, remote instances,
desktop browser, updates, and three troubleshooting pages.

Rebuild sidebar into eight task-oriented sections and translate every new
page into all six supported locales (uk, zh-cn, es, pt-br, ko, pl).

* docs: surface new sections on homepage and cross-link tunnels

Add an Explore block to the docs homepage (all seven locales) linking to
the new section anchors, and cross-link the Tunnels page to Security and
PWA & Mobile.
2026-05-24 14:15:55 +03:00

31 lines
1.3 KiB
Plaintext

---
title: Git 身份
description: 在每个仓库中以正确的姓名和邮箱进行提交。
---
# Git 身份
git 身份是你的提交所署名的姓名和邮箱。如果你在个人仓库和工作仓库之间往返,你可以保存多个身份并为每个仓库应用正确的那个,而不必依赖单一的全局设置。在 **Settings → Git** 中管理它们。
## 添加身份
1. 打开 **Settings → Git** 并选择 **New**。
2. 输入用于提交的 **name** 和 **email**。
3. 选择它如何与远程进行鉴权:
- **SSH** — 让它指向一个 SSH 密钥
- **token** — 使用某个主机已保存的凭证
4. 可选地给它一个颜色和图标,以便易于识别。
你系统的全局身份也会显示,为只读。
## 为仓库应用身份
应用身份会将它写入该仓库的 **local** git 配置 — 它只影响该仓库,不影响你的全局设置。SSH 身份还会设置 SSH 命令以使用你的密钥;token 身份会为该主机设置凭证存储。
你可以导入 OpenChamber 从你现有 git 凭证中发现的身份,并将它们保存为 token 身份。
## 相关内容
- [Git 与 GitHub 工作流](/zh-cn/git/) — 使用你设置的身份进行提交
- [GitHub Issue 与 PR](/zh-cn/github/) — 连接 GitHub 账号以使用 PR