Ok. I managed to git push to the space. There seems to be some issue with osxkeychain. I ran the following commands to erase the existing token/password in osxkeychain:
git credential-osxkeychain erase ⏎
host=huggingface.co ⏎
protocol=https⏎
⏎
⏎
Where ⏎ is Enter