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:

  1. 3 dot menu | Duplicate this Space # to your own space under name e.g. "test_agent"
  2. Get a token with write permission from https://huggingface.co/settings/tokens
  3. brew install git-lfs
  4. git lfs install
  5. brew install huggingface-cli
  6. huggingface-cli login # input your token
  7. git clone https://huggingface.co/spaces/[username]/test_agent

Sign up or log in to comment