# Git push troubles

**URL:** <https://discuss.huggingface.co/t/git-push-troubles/50955>\
**Category:** Beginners\
**Created:** [August 16, 2023, 12:19pm UTC](https://discuss.huggingface.co/t/git-push-troubles/50955 "2023-08-16T12:19:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SciStalk](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@SciStalk](https://discuss.huggingface.co/u/SciStalk)\
**Post date:** [August 16, 2023, 12:19pm UTC](https://discuss.huggingface.co/t/git-push-troubles/50955/1 "2023-08-16T12:19:31Z")

</div>

I am doing everything like in [Getting Started with Repositories](https://huggingface.co/docs/hub/repositories-getting-started), trying to upload model with terminal, because, uploading model already have taken 2 days, it’s size 136 mb(yolov8x), and it is not moving at all, tryed reupload several times, uploading RTDetr, everything doesn’t work in web ui, though, in PyCharm’s CLI I logged in,  
some CLI output:  
Token is valid (permission: read).  
Your token has been saved in your configured git credential helpers (store).  
Your token has been saved to /home/vladislav/.cache/huggingface/token  
Login successful

(venv) vladislav@vladislav-MS-7D48:~/PycharmProjects/pythonProjectModelApp/yolov8model$ huggingface-cli whoami  
Output:  
SciStalk

But  
(venv) vladislav@vladislav-MS-7D48:~/PycharmProjects/pythonProjectModelApp/yolov8model$ git add best.pt  
git commit -m “First model version”  
git push  
On branch main  
Your branch is ahead of ‘origin/main’ by 1 commit.  
(use “git push” to publish your local commits)

nothing to commit, working tree clean  
batch response: Authorization error. B | 0 B/s  
error: failed to push some refs to ‘[SciStalk/yolov8model · Hugging Face](https://huggingface.co/SciStalk/yolov8model)’  
(venv) vladislav@vladislav-MS-7D48:~/PycharmProjects/pythonProjectModelApp/yolov8model$ git push -u origin main  
batch response: Authorization error. B | 0 B/s  
error: failed to push some refs to ‘[SciStalk/yolov8model · Hugging Face](https://huggingface.co/SciStalk/yolov8model)’  
(venv) vladislav@vladislav-MS-7D48:~/PycharmProjects/pythonProjectModelApp/yolov8model$

What am I doing wrong?

UPD:  
Hmmm  
(venv) vladislav@vladislav-MS-7D48:~/PycharmProjects/pythonProjectModelApp/yolov8model$ git add best.pt  
(venv) vladislav@vladislav-MS-7D48:~/PycharmProjects/pythonProjectModelApp/yolov8model$ git push  
batch response: Authorization error. B | 0 B/s  
error: failed to push some refs to ‘[SciStalk/yolov8model · Hugging Face](https://huggingface.co/SciStalk/yolov8model)’  
(venv) vladislav@vladislav-MS-7D48:~/PycharmProjects/pythonProjectModelApp/yolov8model$ huggingface-cli whoami  
SciStalk

OS Ubuntu 22.04.3 LTS

---

<div class="post-metadata">

**Author:** ![SciStalk](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@SciStalk](https://discuss.huggingface.co/u/SciStalk)\
**Post date:** [August 16, 2023, 1:45pm UTC](https://discuss.huggingface.co/t/git-push-troubles/50955/2 "2023-08-16T13:45:11Z")

</div>

Solution: do not forget create new token with WRITE mode
