Git check-ingore: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Git Commands =Overview= Show whether a file is ignored from tracking, helps debugging .gitignore. <syntaxhighli...")
 
 
Line 6: Line 6:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
git check-ignore [-v] <path>
git check-ignore [-v] <path>
</syntaxhighlight>
It displays details about ignored files:
<syntaxhighlight lang='bash'>
git check-ignore -v ./target/
.gitignore:54:target ./target/
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 07:20, 6 September 2021

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/