101 stuff: how to git clone to localhost and code with VSCode
#66
by
4n6h4x0r
- opened
If you see this: 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
, read further.
There were security upgrades rendering old methods / instructions obsolete, specifically, the instructions given in https://huggingface.co/blog/password-git-deprecation telling people to use the user access token in place of password no longer works. Do this instead:
- 3 dot menu | Duplicate this Space # to your own space under name e.g. "test_agent"
- Get a token with write permission from https://huggingface.co/settings/tokens
- brew install git-lfs
- git lfs install
- brew install huggingface-cli
- huggingface-cli login # input your token
- git clone https://huggingface.co/spaces/[username]/test_agent