---
title: "内置终端"
description: "gitā 内置了终端：在窗口底部以标签页形式运行你的登录 Shell，工作目录就在当前仓库文件夹。也可以改为打开 Terminal、iTerm、Ghostty 或 Warp。"
url: https://getgita.app/zh-hans/features/terminal
lang: zh-Hans
---

# 就在窗口里的 内置终端

有些事还是直接敲命令更快。在“设置”中选择“内置终端”，按下 ⌃`，终端就会在窗口底部展开，并自动进入仓库所在目录。

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

## 试试看

1. 点击终端区域并输入 **git status -sb**。
2. 试试 **git log --oneline -5** 和 **git branch**。
3. 输入 **help** 看看这个演示版能识别哪些命令。

## 终端

- **你自己的 Shell.** 它运行的是你的登录 Shell，沿用你的提示符、别名和全部工具，工作目录就是当前窗口前的仓库文件夹。
- **底部的标签页.** 想开多少个终端都可以。每个终端都是面板中的一个标签页，面板高度会记住你上次拖拽的位置。
- **深色、浅色或跟随主题.** 终端配色可以固定为深色、浅色，或自动跟随 gitā 的主题和外观。
- **两个快捷键.** ⌃` 显示或隐藏终端面板，⌃⇧` 新建终端。两者均可自定义。
- **或者用回你习惯的终端.** 如果你更习惯 Terminal、iTerm、Ghostty、Warp、WezTerm、kitty、Alacritty 或其他任意应用，在“设置”中选定它，“在终端中打开”就会调用它。
- **关闭前会先询问.** 当窗口内仍有打开的终端时，关闭窗口会先询问你，避免意外中断正在运行的任务。

## Questions, answered

### Which shell does the built-in terminal run?

Your login shell, with your prompt, your aliases and your tools, in the folder of the repository in front of you.

### Can I use Terminal or iTerm instead?

Yes. Choose Terminal, iTerm, Ghostty, Warp or another app in Settings, and **Open in Terminal** uses that one.

[全部功能](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
