Install elpa-gitignore-mode by entering the following commands in the terminal:
sudo apt update sudo apt install elpa-gitignore-mode
Description:
major mode for editing Git configuration files (gitignore)
This package provides major mode for editing `.gitignore', `.git/info/exclude', and `git/ignore' Git configuration files. . `gitignore-mode' derives from `conf-unix-mode'.
Homepage: https://github.com/magit/git-modes
Version: 1.2.6-1
Section: universe/lisp