---
title: "篩選與搜尋歷史紀錄"
description: "在 gitā 中，你可以只顯示單一分支、在圖譜中隱藏或釘選分支、突顯或篩選特定作者的提交，並依提交訊息、作者、路徑或提交雜湊搜尋整個歷史紀錄。"
url: https://getgita.app/zh-hant/features/filtering
lang: zh-Hant
---

# 只看 你正在尋找的內容

繁忙的儲存庫往往分支眾多、參與者也多，令人無從看起。gitā 讓你輕鬆將歷史紀錄縮減到某個分支、某位作者或一次搜尋結果，並支援一鍵恢復全貌。

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

## 試試看

1. 在側邊欄頂部的 **過濾** 輸入框中輸入關鍵字。
2. 右鍵按一下側邊欄中的分支，選擇 **僅顯示此分支**。
3. 右鍵按一下一筆提交，展開其作者名稱，然後選擇 **突顯**。
4. 在歷史紀錄上方的 **搜尋提交訊息** 中輸入內容。

## 篩選與搜尋

- **過濾側邊欄.** 側邊欄上方的輸入框會將分支、標籤與暫存篩選為名稱相符的項目，並自動展開所有資料夾以便查看。
- **僅顯示單一分支.** 從分支選單或滑鼠懸停時出現的按鈕中選擇「僅顯示此分支」。歷史紀錄頂部會標明目前查看的分支，按一下「全部分支」即可返回。
- **隱藏或釘選分支.** 「在圖譜中隱藏」可將干擾視線的分支移出歷史；「釘選至頂部」則能將關心的分支固定在側邊欄最上方。gitā 會為每個儲存庫單獨記住這些設定。
- **突顯一位作者.** 右鍵按一下提交，在其作者名稱下選擇「突顯」。該作者的提交會保持明亮，其餘提交則變淡，同時保留完整的圖譜結構。
- **依作者篩選.** 如果改選「篩選」，則會開啟一個新標籤頁，僅包含該作者的提交，並為其單獨繪製圖譜。
- **搜尋整個歷史紀錄.** ⌘F 支援依提交訊息、作者、路徑或提交雜湊搜尋。它會遍歷整個儲存庫，而不只限於已載入的提交，並且會限定在目前顯示的分支範圍內。
- **查看單一檔案的歷史.** 右鍵按一下任意檔案並選擇「歷史紀錄」，即可查看每一次修改過該檔案的提交。

## Questions, answered

### Can I look at one branch only?

Yes. Choose **Show Only This Branch** from a branch's menu in the sidebar. The history's header says what you are looking at, and **All branches** takes you back.

### Can I search the whole history?

⌘F searches by message, author, path or commit. It looks through the entire repository, not only the commits that have loaded.

[全部功能](https://getgita.app/zh-hant/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
