[Spaces, Dev mode] VS Code web - cannot push commits

Cloned the official example space: Example: Python - a Hugging Face Space by dev-mode-explorers
Enabled Dev Mode.
Pressed “Connect using VS Code in your Browser.“
Made changes. Committed changes.
Documentation tells me to do “git push“. Spaces Dev Mode: Seamless development in Spaces
Running git push in terminal causes VSCode to ask for username, then password, then HF refuses to accept the push:

user@r-ark-kun-dev-mode-python-9gftiur4-152e0-6q8wp:/app$ git push
remote: Password authentication in git is no longer supported. You must use a user access token or an SSH key instead. See https://huggingface.co/blog/password-git-deprecation
fatal: Authentication failed for 'https://huggingface.co/spaces/Ark-kun/dev-mode-python/'

Expectation: Pushing changes works automatically from inside the HF Space.

1 Like