Adding Code from existing GitHub repository to a Space
I’ve got some code on GitHub that I’d like to add to a Space. I’ve added the space as a new remote, but I’m having trouble pushing to it.git push -u -f huggingface
Username for 'https://huggingface.co': PlayfulTechnology
Password for 'https://PlayfulTechnology@huggingface.co': 
Enumerating objects: 781, done.
Counting objects: 100% (781/781), done.
Delta compression using up to 16 threads
Compressing objects: 100% (771/771), done.
Writing objects: 100% (781/781), 134.58 KiB | 3.84 MiB/s, done.
Total 781 (delta 510), reused 2 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (510/510), done.
remote: -------------------------------------------------------------------------
remote: You are not authorized to push to some of the references:
remote: - refs/remotes/origin/HEAD: Cannot create or delete refs that are not branches or tags with git push
remote: - refs/remotes/origin/main: Cannot create or delete refs that are not branches or tags with git push
remote: -------------------------------------------------------------------------
To https://huggingface.co/spaces/PlayfulTechnology/QARAC
 ! [remote rejected] main -> main (pre-receive hook declined)
 ! [remote rejected] origin/HEAD -> origin/HEAD (deny updating a hidden ref)
 ! [remote rejected] origin/main -> origin/main (deny updating a hidden ref)
error: failed to push some refs to 'https://huggingface.co/spaces/PlayfulTechnology/QARAC'What can I do about this? (the space is PlayfulTechnology/QARAC)
2023-10-11T16:40:27Z
It was an authentication error. Solved by using SSH.