Github backup script produces nothing but errors

#cd /config/
hassio homeassistant check
git add .
git status
echo -n "Enter the Description for the Change: " [Minor Update]
git commit -m "${CHANGE_MSG}"
git push origin master

running this, as per documentation, leads to; hassio explaing what commands are available, then complaining

fatal: pathspec '.?' did not match any files
' is not a git command. See 'git --help'.

The most similar command is
': not a valid identifier the Change:  [Minor Update]
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
fatal: invalid refspec 'master?'

Anyone care to shed some light on this? Thanks.

Did you ever fix the error? Trying to setup hassio with git as well. I am not sure what the dir path to config is.

No, I just switched to Google Drive Backup.