Cant push my model using git
When I try to push it shows me that errorEnumerating objects: 4, done.Counting objects: 100% (4/4), done.Delta compression using up to 8 threadsCompressing objects: 100% (3/3), done.Writing objects: 100% (3/3), 3.89 KiB | 3.89 MiB/s, done.Total 3 (delta 1), reused 0 (delta 0), pack-reused 0remote: -------------------------------------------------------------------------remote: You are not authorized to push to this repo.remote: Make sure that you are properly logged in.remote: -------------------------------------------------------------------------Tohttps://huggingface.co/dev-gaju/Squad-DistilBert! [remote rejected] main → main (pre-receive hook declined)error: failed to push some refs to ‘https://huggingface.co/dev-gaju/Squad-DistilBert’hugging face env:Copy-and-paste the text below in your GitHub issue.`- huggingface_hub version: 0.18.0Platform: Windows-10-10.0.22621-SP0Python version: 3.9.13Running in iPython ?: NoRunning in notebook ?: NoRunning in Google Colab ?: NoToken path ?: C:\Users\gazur.cache\huggingface\tokenHas saved token ?: TrueWho am I ?: dev-gajuConfigured git credential helpers: manager, storeFastAI: N/ATensorflow: N/ATorch: 2.1.0Jinja2: 3.1.2Graphviz: N/APydot: N/APillow: 10.0.1REDACTED_TOKEN: N/Agradio: N/Atensorboard: N/Anumpy: 1.26.1pydantic: 2.5.2aiohttp: 3.9.1HUGGINGFACE_HUB_CACHE: C:\Users\gazur.cache\huggingface\hubHUGGINGFACE_ASSETS_CACHE: C:\Users\gazur.cache\huggingface\assetsHF_TOKEN_PATH: C:\Users\gazur.cache\huggingface\tokenHF_HUB_OFFLINE: FalseHF_HUB_DISABLE_TELEMETRY: FalseHF_HUB_DISABLE_PROGRESS_BARS: NoneHF_HUB_DISABLE_SYMLINKS_WARNING: FalseHF_HUB_DISABLE_EXPERIMENTAL_WARNING: FalseHF_HUB_DISABLE_IMPLICIT_TOKEN: FalseHF_HUB_ENABLE_HF_TRANSFER: False`
2023-12-05T15:54:51Z
Looks like it is a private repository (at least I can’t open the link), did you log in with your access token? You should probably use thehuggingface-cli logincommand beforehand.
2023-12-06T00:46:54Z
Yes, I used my access token to log in, Should I use my access token before every push? Manually adding to the repository works for me but not with the command line.
2023-12-07T12:13:27Z
No no, logging in once should be enough, I just thought this might be the cause because of the “not authorized” error. Maybethis other threadhelps, you can also try with SSH authentication as one of the users suggests.
2024-02-04T15:25:37Z
If anyone else is having problems with pushing to your repo, be sure to set your API Key to “write”. A little thing that you may not think about while committing…