gitmkdirs: 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/gitmkdirs - from package: gnuit

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