Push was rejected: forbidden

Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 10 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 431 bytes | 431.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: ----------------------------------------------------------
remote: Your push was rejected for the following reasons:
remote: DENIED update refs/heads/main: forbidden
remote: ----------------------------------------------------------
 ! [remote rejected] main -> main (pre-receive hook declined)

I’ve tried the method in this thread , or generating GPG Keys and put it into huggingface, or using:

huggingface-cli login

Still do NOT work.

Hello! Hmm, that’s strange! Did you run git lfs install before adding and committing your files?

Yes, The results are:

$ git lfs install
Updated git hooks.
Git LFS initialized.

Sweet! And before adding and committing you ran git lfs track <EXTENSION> for any larger files?

You can try running git lfs ls-files to see if all the files that you’re trying to track have actually been added with Git LFS. Generally anything large-ish (checkpoint files, images, etc.) should be tracked. If they’re not, then you can undo the commit, track the files, commit and push again.