How To Install Git-linguist On Debian, Ubuntu, Arch, Kali And Raspbian?

How To Install Git-linguist On Debian, Ubuntu, Arch, Kali And Raspbian?

git-linguist

detection and highlight of the programming language of source code

Maintainer: Debian Ruby Extras Maintainers



Section: ruby

Install git-linguist

  • Debian apt-get install ruby-github-linguist Click to copy
  • Ubuntu apt-get install ruby-github-linguist Click to copy
  • Arch Linux pacman -S gitlab-gitaly Click to copy
  • Kali Linux apt-get install ruby-github-linguist Click to copy
  • Raspbian apt-get install ruby-github-linguist Click to copy

ruby-github-linguist

detection and highlight of the programming language of source code

Language detection: ruby-github-linguist defines a list of all languages known to GitHub in a yaml file. In order for a file to be highlighted, a language and a lexer must be defined there. Syntax Highlighting: The actual syntax highlighting is handled by the Pygments wrapper, ruby-pygments.rb. It also provides a Lexer abstraction that determines which highlighter should be used on a file. Stats: The Language stats bar that you see on every repository is built by aggregating the languages of each file in that repository. The top language in the graph determines the project's primary language. Ignore vendored files: Checking other code into your git repo is a common practice. But this often inflates your project's language stats and may even cause your project to be labeled as another language. ruby-github-linguist is able to identify some of these files and directories and exclude them. Generated file detection: Not all plain text files are true source files. Generated files like minified js and compiled CoffeeScript can be detected and excluded from language stats. As an extra bonus, these files are suppressed in diffs.

gitlab-gitaly

Speed up Git access using caching
Installing git-linguist command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali and Raspbian operating systems. Once you run the command it will install the latest version of git-linguist 2026 package in your OS.