error: failed to push some refs to 'github.com:langdon/my-private-repo.git'
I am not sure if you are maintaining this anymore but it could be super helpful for all of my CSVs for doing data science work.
However, I am running in to
EOFoading LFS objects: 100% (51/51), 283 MB | 0 B/s
error: failed to push some refs to 'github.com:langdon/my-private-repo.git'
I am running on linux and have tried existing and new repos with no luck.
Any ideas?
I'm not working on this anymore but it should still work. You should be able to get more info about the failure by setting GIT_TRACE=1 during your command.
Did you find a solution to your problem @langdon ?
I'm not working on this anymore but it should still work. You should be able to get more info about the failure by setting
GIT_TRACE=1during your command.
am i doing this wrong??
Sorry, should have been clearer: GIT_TRACE=1 is an environment variable, so you need to set it in your command prompt:
set GIT_TRACE=1
git push folderremote master
Okay thanks, new to git here, and I'm desperately trying to set an LFS system, Gits default storage is way too small and I can't pay monthly for storage
hey @langdon @mzati0 did you guys ever find a fix? Did setting GIT_TRACE=1 fix it?
For me it was a path with spaces in it.
There is a note in the Readme - so it was a RTFM problem.
Solution: add extra single quotes to add the path to your folder:
git config --add lfs.customtransfer.lfs-folder.args "'path/to/My Drive/folder'"
See also: #4
Hi, thanks for writing this software. After reading and following all instructions, I was still getting the "failed to push some refs ..." error. So adding the single quote around my google drive path (g:/My Drive/) didn't resolve the problem. However, I did some more digging. After asking some questions on Chat-GTP, I found my issue. Turns out git bash on Windows, which is the environment where I am doing my git source control stuff, couldn't call the command lfs-folderstore.exe during git push because it doesn't recognize it. Running the 'GIT_TRACE=2 git push' helped me track down the source of this issue. Btw, looks like adding lfs-folderstore to my Windows environmental variable doesn't work on git bash. To finally solve my problem, I added "export PATH=$PATH:/c/path/to/lfs-folderstore/" to my ~/.bashrc config file. Now git bash is able to call the lfs-folderstore.exe and I am able to do proper git push with lfs assets in my commits to my google drive. Yay! Hope this shed more light on the issue for anyone who might still be struggling to get this to work.