# Ignore Markdown Files When Doing Trailing Whitespaces Check in Git
## Metadata
**Status**:: #x
**Zettel**:: #zettel/literature
**Created**:: [[2022-10-02]]
## Notes
Use gitattributes to skip the whitespace check on specified files.[^1]
```
**/*.md -whitespace
```
It's possible to [[Git Authors - Gitattributes Documentation (Highlights)#^391077277|use a global gitattributes file]] and ignore the whitespace check on markdown files in all repositories.
[^1]: [[Sukima on Stack Overflow et al. - Git Ignores Trailing Whitespace in Markdown Files Only (Highlights)]]