Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

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

Open
langdon opened this issue Feb 2, 2022 · 8 comments

Comments

@langdon
Copy link

langdon commented Feb 2, 2022

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?

@sinbad
Copy link
Owner

sinbad commented Feb 3, 2022

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.

@mzati0
Copy link

mzati0 commented Aug 15, 2022

Did you find a solution to your problem @langdon ?

@mzati0
Copy link

mzati0 commented Aug 15, 2022

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??

@sinbad
Copy link
Owner

sinbad commented Aug 15, 2022

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

@mzati0
Copy link

mzati0 commented Aug 15, 2022

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

@ayang903
Copy link

ayang903 commented May 5, 2023

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

@Tarzis
Copy link

Tarzis commented May 21, 2023

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

@LLVir
Copy link

LLVir commented Aug 14, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants