One method to get Hugging Face Credentials set up on your local.
Firstly go through the Hugging Face CLI authentication.
Create a Git credentials store
git config --global credential.helper store
Store your token replacing values:
https://<your_huggingface_username>:<your_huggingface_token>@huggingface.co