git config must either be global or inside a repo. I moved the lines for initialization of git to only apply to the ghpagesclone.