I managed to get git to connect by using the HTTPS remote URL format with user:token.
[remote "hf"]
url = https://trusktr:<TOKEN>@huggingface.co/spaces/lume-creative/lume
fetch = +refs/heads/*:refs/remotes/hf/*
However, now when I try to push, it fails:
❯ git push --recurse-submodules=no hf develop
Enumerating objects: 18207, done.
Counting objects: 100% (18207/18207), done.
Delta compression using up to 8 threads
Compressing objects: 100% (5958/5958), done.
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (18207/18207), 72.05 MiB | 154.67 MiB/s, done.
Total 18207 (delta 13630), reused 16295 (delta 11969), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
The errors:
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Have I goofed something up with LFS? Or is it something else like the git submodules which I have not yet pushed to HF?
EDIT: running this,
git config --global http.postBuffer 157286400
fixed the previous error by increasing memory size (or something). Looks like its an error related to the HTTP connection, which I haven’t encountered before as I always use SSH.
Now I’m receiving new errors like
... omitted ...
remote: Resolving deltas: 100% (13632/13632), done.
remote: -------------------------------------------------------------------------
remote: Your push was rejected because it contains files larger than 10 MiB.
remote: Please use https://git-lfs.github.com/ to store large files.
remote: See also: https://hf.co/docs/hub/repositories-getting-started#terminal
remote:
remote: Offending files:
remote: - docs/examples/velodyne-lidar-scan/shelby-scene.ply (ref: refs/heads/main)
remote: - docs/examples/velodyne-lidar-scan/shelby-scene.ply (ref: refs/tags/v0.3.0-alpha.10)
remote: - docs/examples/velodyne-lidar-scan/shelby-scene.ply (ref: refs/tags/v0.3.0-alpha.11)
... omitted ...
so now I’ll try LFS.
EDIT: after installing Git LFS, my git pushes still get rejected. I’ll open a separate thread for that: