Invalid username and password when push_to_hub set to true

Oh yes, thanks. The issue was that using username/password auth for git is no longer supported so even if token is already setup for the project, it is still required to manually add the token to the project repo that resides locally

Deprecation of Git Authentication using password

``
$: git remote set-url origin ``https://<user_name>:<token>@huggingface.co/``<repo_path> $: git pull origin ```

Typically, using ``hf auth login`` should ask whether to add the token as git credential, but as the directory running the script did not have git initialized locally, the option was bypassed. But looks better now.

1 Like