From ffa74cb7738867ee703f07dbbebb1759f00a5347 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 1 Oct 2020 18:55:26 +0100 Subject: [PATCH] Add note about linguist language detection --- notes/github-force-detect-language.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 notes/github-force-detect-language.md diff --git a/notes/github-force-detect-language.md b/notes/github-force-detect-language.md new file mode 100644 index 0000000..3059a37 --- /dev/null +++ b/notes/github-force-detect-language.md @@ -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 +```