# Authentication issue while cloning repo locally

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthentication-issue-while-cloning-repo-locally%2F143504%3E%5C
**Category:** Beginners\
**Created:** [March 1, 2025, 4:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthentication-issue-while-cloning-repo-locally%2F143504 "2025-03-01T04:47:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CFQEdward](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@CFQEdward](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FCFQEdward)%5C
**Post date:** [March 1, 2025, 4:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthentication-issue-while-cloning-repo-locally%2F143504%2F1 "2025-03-01T04:47:47Z")

</div>

Hi, I am trying to cloning a public repo locally following the guide:  
git clone [Llama 2 7B Chat - a Hugging Face Space by huggingface-projects](https://huggingface.co/spaces/huggingface-projects/llama-2-7b-chat)

I keyed this in cmd and git credential manager pop out, as below. I tried access token and my own password, none of them works.

The error info is:  
remote: Invalid credentials in Authorization header  
fatal: Authentication failed

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/b/d/bda3723bdaa29f9c807eabef238397e7407714ba.png)

Is there anything wrong with my setup or git config?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 1, 2025, 6:03am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauthentication-issue-while-cloning-repo-locally%2F143504%2F2 "2025-03-01T06:03:55Z")

</div>

The behavior is probably a bug or a strange glitch. You don’t need a password to clone public things.😅  
First, if you’re using Windows, git and git lfs may be out of date, so download and install them. After that, if you need a password, follow the instructions below.

> **[Getting Started with Repositories](https://huggingface.co/docs/hub/repositories-getting-started)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **[Deprecation of Git Authentication using password](https://huggingface.co/blog/password-git-deprecation)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
