---
title: "git check-ignore"
description: "这条命令可以帮你检查某个文件或路径是否被忽略，加上 -v 参数还会显示命中的 exclude 规则（文档）。"
canonical: https://oozou.com/til/git-check-ignore-117
locale: zh-Hans
date: 2021-05-25
topic: cli
---

# git check-ignore

> 这条命令可以帮你检查某个文件或路径是否被忽略，加上 -v 参数还会显示命中的 exclude 规则（文档）。

Published: 2021-05-25 · Topic: [cli](https://oozou.com/zh-Hans/til-topics/cli) ([markdown](https://oozou.com/zh-Hans/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-Hans/contact

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