Skip to content

Commit

Permalink
Merge pull request #40 from f-hollow/docs-fix-gitignore-code-snippet
Browse files Browse the repository at this point in the history
docs: fix .gitignore code snippet
  • Loading branch information
jdkato authored Sep 25, 2023
2 parents 54450a8 + e76bf72 commit 8227e8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion content/en/docs/topics/packages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,17 @@ that you'll also have some local components as well.
# `Vocab/Base` folder.

.github/styles/*
!.github/styles/Vocab/

.github/styles/Vocab/*
!.github/styles/Vocab/Base
```

The above example ignores the entire `.github/styles/` folder *except* for
`.github/styles/Vocab/Base` (which we want to track changes for).
`.github/styles/Vocab/Base` (which we want to track changes for).
The rules to ignore subfolders are written in pairs, because Git disregards
skip-level unignore rules. Any unignored item should have its parent folder
unignored as well.

[1]: /hub/write-good/
[2]: /hub/hugo/

0 comments on commit 8227e8d

Please sign in to comment.