Install elpa-git-modes by entering the following commands in the terminal:
sudo apt update sudo apt install elpa-git-modes
Description:
major modes for editing Git configuration files
This package provides several major modes for editing Git configuration files. The modes are: . * gitattributes-mode * gitconfig-mode * gitignore-mode . Each mode is defined in its own library by the same name. Loading `git-modes' causes all three libraries to be loaded, but you could also load the libraries individually.
Homepage: https://github.com/magit/git-modes
Version: 1.2.6-1
Section: universe/lisp