mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-07-05 18:23:56 +01:00
Add note about linguist language detection
This commit is contained in:
parent
d76ac9becc
commit
ffa74cb773
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 New Issue
Block a user