๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐ŸŽจ Projects/์—๋Ÿฌ๋ชจ์Œ

[GitHub] SQL ์ฝ”๋“œ ์ธ์‹ ๋ชปํ•จ

by HelloRabbit 2023. 3. 12.
728x90

๋ฌธ์ œ ์ƒํ™ฉ

GitHub์—์„œ๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ SQL ์ฝ”๋“œ๋ฅผ ์ธ์‹ํ•˜์ง€ ๋ชปํ•œ๋‹ค.

.sql ํŒŒ์ผ์ด ํฌํ•จ๋˜์–ด ์žˆ์Œ์—๋„ ํŒŒ์ด์ฌ ์ฝ”๋“œ๊ฐ€ 100%๋ผ๊ณ 

 

ํ•ด๊ฒฐ

SQL์„ ํฌํ•จํ•˜๋Š” ๋ ˆํฌ์ง€ํ† ๋ฆฌ์— .gitattributes๋ผ๋Š” ํŒŒ์ผ์„ ๋งŒ๋“ ๋‹ค.

Add file > Create new file

.gitattributes ํŒŒ์ผ ์ถ”๊ฐ€
.gitattributes ํŒŒ์ผ ์ถ”๊ฐ€

# .gitattributes ํŒŒ์ผ ๋‚ด์šฉ
*.sql linguist-detectable=true
*.sql linguist-language=sql

 

์ด์ œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์—์„œ .sql ํŒŒ์ผ๋“ค์„ ์ธ์‹ํ•˜์—ฌ ๋ช‡ ํผ์„ผํŠธ๊ฐ€ SQL ์ฝ”๋“œ์ธ์ง€ ํ‘œ์‹œํ•ด์ค€๋‹ค!

SQL ์ฝ”๋“œ ๋น„์œจ ํ‘œ์‹œ ๋จ

 

์ฐธ๊ณ 

https://github.com/github/linguist/issues/3666

 

 

๋Œ“๊ธ€