mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 19:05:59 +00:00
Add note about linguist language detection
This commit is contained in:
parent
d76ac9becc
commit
ffa74cb773
1 changed files with 16 additions and 0 deletions
16
notes/github-force-detect-language.md
Normal file
16
notes/github-force-detect-language.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
title: Force GitHub to detect a language
|
||||||
|
tags:
|
||||||
|
- GitHub
|
||||||
|
---
|
||||||
|
|
||||||
|
```gitattributes
|
||||||
|
*.md linguist-detectable=true
|
||||||
|
*.sql linguist-detectable=true
|
||||||
|
```
|
||||||
|
|
||||||
|
To force detection as a specific language:
|
||||||
|
|
||||||
|
```gitattributes
|
||||||
|
*.sql linguist-language=sql
|
||||||
|
```
|
Loading…
Reference in a new issue