Skip to content

Commit 74aa765

Browse files
committed
Add example: Debug your .gitignore
1 parent 839d76a commit 74aa765

File tree

4 files changed

+371
-349
lines changed

4 files changed

+371
-349
lines changed

git/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,6 +2661,15 @@
26612661
</span>
26622662
</a>
26632663

2664+
</li>
2665+
2666+
<li class="md-nav__item">
2667+
<a href="#debug-your-gitignore" class="md-nav__link">
2668+
<span class="md-ellipsis">
2669+
Debug your .gitignore
2670+
</span>
2671+
</a>
2672+
26642673
</li>
26652674

26662675
</ul>
@@ -8799,6 +8808,15 @@
87998808
</span>
88008809
</a>
88018810

8811+
</li>
8812+
8813+
<li class="md-nav__item">
8814+
<a href="#debug-your-gitignore" class="md-nav__link">
8815+
<span class="md-ellipsis">
8816+
Debug your .gitignore
8817+
</span>
8818+
</a>
8819+
88028820
</li>
88038821

88048822
</ul>
@@ -9658,6 +9676,10 @@ <h4 id="create-a-git-repository-for-the-cwd">Create a git repository for the CWD
96589676
*~
96599677
.DS_Store&quot; &gt;&gt; .gitignore
96609678
</code></pre>
9679+
<h4 id="debug-your-gitignore">Debug your .gitignore</h4>
9680+
<pre><code class="language-sh">git check-ignore -v some_path another_thing .and-one-more
9681+
</code></pre>
9682+
<p>This will print out which rule is ignoring the given things, if any of them match any rules, and will print nothing if none of the given items are ignored.</p>
96619683
<h3 id="git-clone">git clone</h3>
96629684
<h4 id="clone-a-local-repo">Clone a local repo</h4>
96639685
<pre><code class="language-sh">git clone /path/to/repo

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)