Update-index error: unable to make local repository with Github desktop

Whenever I try to create a local repository using Github Desktop, the following error occurs:

Command failed: /Applications/GitHub Desktop.app/Contents/Resources/app/git/bin/git update-index --add --remove --replace -z --stdin

I’m using macOS. What is this command trying to do and why would it be failing?

Thanks for the report @dimenerno. Could you share the log file from GitHub Desktop so that I could get some more information about this error? To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs.

The log files are created daily – please share a log file from a day where you experienced the issue.