Files
openchamber/packages/docs/content/docs/zh-cn/git.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

42 lines
1.6 KiB
Plaintext
Raw 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.
---
title: Git 与 GitHub 工作流
description: 无需离开 OpenChamber 即可暂存、提交和管理分支。
---
# Git 与 GitHub 工作流
OpenChamber 内置了 git 视图,让你可以审阅变更、提交并管理分支,而无需切换到终端。从右侧边栏的 **Git** 标签页打开它。
## 审阅与提交
git 视图将你的变更分为 **staged** 和 **unstaged**
- 点击文件的 **+** 可暂存它,或点击 **−** 取消暂存
- 一次性暂存或取消暂存某个分组中的所有内容
- 点击文件可查看它的 diff
然后编写提交信息并提交。你可以让 OpenChamber 从你已暂存的变更中 **生成提交信息** — 它使用当前会话的模型,因此你需要打开一个会话。
## 分支与历史
git 视图也涵盖了 git 日常的其余操作:
- 创建、切换、重命名和删除分支
- 推送、拉取和获取
- 浏览历史和每次提交的 diff
- 暂存(stash)和恢复变更
## 拉取请求
连接 GitHub(参阅 [GitHub Issue 与 PR](/zh-cn/github/)),**PR** 标签页让你可以打开拉取请求、更新它、将其标记为就绪或合并它 — 并以与提交信息相同的方式生成它的标题和描述。
## 处理冲突
如果一次合并、变基或集成遇到冲突,OpenChamber 会显示卡住的内容并让你解决它 — 包括把它交给智能体。
## 相关内容
- [GitHub Issue 与 PR](/zh-cn/github/) — 连接 GitHub 并从 issue 开始工作
- [Worktree 会话](/zh-cn/worktrees/) — 在独立文件夹中隔离一个分支
- [Git 身份](/zh-cn/git-identities/) — 在每个仓库中以正确的身份提交