---
title: "命令面板"
description: "在 gitā 中按下 ⌘K 即可搜索所有命令、分支、Pull Request、工作流运行、部署、工作区、仓库和提交。拼写有误也能匹配，按 Tab 可缩小搜索范围。"
url: https://getgita.app/zh-hans/features/command-palette
lang: zh-Hans
---

# 按下 ⌘K 查找一切

命令面板是贯穿整个应用的统一搜索框。输入几个字母，按下回车即可执行。

A live copy of the app is on the page: https://getgita.app/zh-hans/features/command-palette

## 试试看

1. 输入 **psuh**，它依然能找到 Push。
2. 按下 **Tab**，依次限定为只搜分支、只搜命令等。
3. 输入 **deploy** 并按回车，打开部署页面。
4. 将指针移到窗口上并按下 **⌘K**，重新呼出命令面板。

## 命令面板

- **万物归一.** 菜单命令、分支、Pull Request、工作流运行、部署、工作区、仓库、提交以及“设置”的各个面板都会出现在同一次搜索中。
- **容错匹配.** 支持词首匹配、首字母缩写（输入 fp 即可找到 Force Push）以及按顺序的模糊字母匹配，哪怕手滑拼错也能命中。匹配到的字母会加粗显示。
- **按 Tab 缩小范围.** 每按一次 Tab 就会切换到下一种类别：只看分支、只看 Pull Request、只看提交。Shift-Tab 返回上一类。
- **切换分支.** ⇧⌘K 会打开只包含分支的面板，当前分支会特别标出，并按最新顺序排列。
- **直接从输入创建分支.** 输入一个名称后按下 ⌘N，即可直接创建同名分支。
- **常用优先.** 最近选择过的内容下次会排在最前面，命令右侧还会显示对应的快捷键。

## Questions, answered

### What can the command palette find?

Menu commands, branches, pull requests, workflow runs, deployments, workspaces, repositories, commits and the panes of Settings, all in one search.

### Does it forgive typos?

Yes. It matches word starts, initials and letters in order, so **psuh** still finds Push. The letters that matched are shown in bold.

[全部功能](https://getgita.app/zh-hans/features.md)

- **下载 macOS 版:** https://github.com/rolottr/gita/releases/latest
- **在 GitHub 上查看:** https://github.com/rolottr/gita

---

Apple, macOS and Mac are trademarks of Apple Inc. Git is a trademark of Software Freedom Conservancy. GitHub is a trademark of GitHub, Inc. Vercel is a trademark of Vercel Inc. Claude is a trademark of Anthropic, PBC. gitā is independent software and is not affiliated with any of them. 问题反馈: https://github.com/rolottr/gita/issues
