How to get git update-index working with macOS?
You are possible executing the command incorrectly. There is no git-update-index command.

Instead try, git update-index.

There is no additional steps required to install git-update-index.