Git check-ingore

From NovaOrdis Knowledge Base
Revision as of 07:20, 6 September 2021 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

Show whether a file is ignored from tracking, helps debugging .gitignore.

git check-ignore [-v] <path>

It displays details about ignored files:

git check-ignore -v ./target/
.gitignore:54:target	./target/