# Can't push to a dataset repository

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcant-push-to-a-dataset-repository%2F36611%3E%5C
**Category:** 🤗Hub\
**Created:** [April 14, 2023, 7:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcant-push-to-a-dataset-repository%2F36611 "2023-04-14T19:09:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomersagi](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tomersagi](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftomersagi)%5C
**Post date:** [April 14, 2023, 7:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcant-push-to-a-dataset-repository%2F36611%2F1 "2023-04-14T19:09:51Z")

</div>

Hi there,  
I have a dataset repository under an organization where I am the admin. I cloned the repository to a Linux machine, prepared the dataset, and committed it and the dataset load script (with git LFS) to the local repository.  
When pushing the changes back to hugging face I get an authorization error. I tried logging in again, making sure that the commits have the same username and email that my hugging face account is and that the token is set in the git credentials file. To no avail.  
Any ideas?

```auto
$ git push
batch response: Authorization error. B | 0 B/s
Uploading LFS objects: 0% (0/16), 0 B | 0 B/s, done.
error: failed to push some refs to 'https://huggingface.co/datasets/myorg/mydataset

```

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [April 14, 2023, 7:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcant-push-to-a-dataset-repository%2F36611%2F2 "2023-04-14T19:17:00Z")

</div>

hi @tomersagi ,

The error message says Authorization error please try

> [@I got Authorization error](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fi-got-authorization-error%2F32881%2F9)%3A
>
> for all in the thread, we now have support for SSH keys, so many of the authentication problems could be overcome via SSH authentication.

---

<div class="post-metadata">

**Author:** ![tomersagi](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tomersagi](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftomersagi)%5C
**Post date:** [April 14, 2023, 7:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcant-push-to-a-dataset-repository%2F36611%2F3 "2023-04-14T19:29:57Z")

</div>

That solved it! Thanks! I recloned using ssh and had no more problems from there.

---

<div class="post-metadata">

**Author:** ![Daoguang](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@Daoguang](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDaoguang)%5C
**Post date:** [January 15, 2024, 9:57am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcant-push-to-a-dataset-repository%2F36611%2F4 "2024-01-15T09:57:29Z")

</div>

Thanks very much! It works!!!

---

<div class="post-metadata">

**Author:** ![womag](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/womag/32/19841_2.png) [@womag](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwomag)%5C
**Post date:** [March 18, 2024, 9:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcant-push-to-a-dataset-repository%2F36611%2F5 "2024-03-18T21:10:37Z")

</div>

Regarding MacOS users: If you initially signed on the cli with a READ token. Then had issues pushing, read the forums, figured out you need a WRITE token, went and created a new WRITE token, logged in, and it failed.That won’t work. The READ key _stays in the keychain_. Open keychain, search for ‘hugging’ delete and then sign on again with the WRITE token. Then, it should work.
