git-ignore: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/git-ignore - from package: git-extras

You may install the required package with command apt-get install {package}
Error in other languages:
git-ignore: bevel nie gevind nie
git-ignore: comandă negăsită
git-ignore: comando não encontrado
git-ignore: commande introuvable
git-ignore: command not found
git-ignore: käsku ei ole
git-ignore: không tìm thấy lệnh
git-ignore: komanda nerasta
git-ignore: Kommando nicht gefunden.
git-ignore: kommandot finns inte
git-ignore: komut yok
git-ignore: nie znaleziono polecenia
git-ignore: níor aimsíodh an t-ordú
git-ignore: no se encontró la orden
git-ignore: no s'ha trobat l'ordre
git-ignore: opdracht niet gevonden
git-ignore: parancs nem található
git-ignore: perintah tidak ditemukan
git-ignore: príkaz nenájdený
git-ignore: příkaz nenalezen
git-ignore: команда не найдена
git-ignore: командата не е открита
git-ignore: 命令找不到
git-ignore: コマンドが見つかりません