---
title: "git check-ignore"
description: "這個指令可以協助你檢查某個檔案或路徑是否被忽略，加上 -v 參數時還會顯示符合的 exclude 樣式（文件）。"
canonical: https://oozou.com/til/git-check-ignore-117
locale: zh-Hant
date: 2021-05-25
topic: cli
---

# git check-ignore

> 這個指令可以協助你檢查某個檔案或路徑是否被忽略，加上 -v 參數時還會顯示符合的 exclude 樣式（文件）。

Published: 2021-05-25 · Topic: [cli](https://oozou.com/zh-Hant/til-topics/cli) ([markdown](https://oozou.com/zh-Hant/til-topics/cli.md))

這個指令可以協助你檢查某個檔案或路徑是否被忽略，加上 -v 參數時還會顯示符合的 exclude 樣式（[文件](https://git-scm.com/docs/git-check-ignore)）。

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/zh-Hant/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
