lfs-folderstore icon indicating copy to clipboard operation
lfs-folderstore copied to clipboard

error: failed to push some refs to 'github.com:langdon/my-private-repo.git'

Open langdon opened this issue 4 years ago • 8 comments

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?

langdon avatar Feb 02 '22 22:02 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=1 during your command.

sinbad avatar Feb 03 '22 12:02 sinbad

Did you find a solution to your problem @langdon ?

mzati0 avatar Aug 15 '22 16:08 mzati0

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.

image am i doing this wrong??

mzati0 avatar Aug 15 '22 16:08 mzati0

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

sinbad avatar Aug 15 '22 16:08 sinbad

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

mzati0 avatar Aug 15 '22 16:08 mzati0

hey @langdon @mzati0 did you guys ever find a fix? Did setting GIT_TRACE=1 fix it?

ayang903 avatar May 05 '23 21:05 ayang903

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

Tarzis avatar May 21 '23 11:05 Tarzis

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.

LLVir avatar Aug 14 '23 19:08 LLVir