Error while add large File to Git with Git LFS

keep getting this git error even after track "*.exe" to git lfs can someone pls help
No description
75 Replies
ἔρως
ἔρως2mo ago
why are you even trying to send a 100mb binary file to github?
glutonium
glutonium2mo ago
also executables don't go directly into the github there's a dedicated section for it called releases and u have to manually upload it there from the GitHub website
ghoul
ghoulOP2mo ago
wait how do i upload from github when i cannot push to git repo due to large file size???
glutonium
glutonium2mo ago
I've never released myself but search "how to release binaries on github"
ghoul
ghoulOP2mo ago
just building smaple site is there any better way to do this
glutonium
glutonium2mo ago
No description
glutonium
glutonium2mo ago
try clicking here and see if u can upload from here sample sites? website?
ἔρως
ἔρως2mo ago
you can use the github command line, according to this: https://stackoverflow.com/a/64939046
Stack Overflow
How to release on GitHub through the command line and to attach a l...
Is it possible to release on GitHub through the command line with an attached file that is not pushed to a repository? I have a file over 1GB that I easily attached through a web GitHub release pag...
ἔρως
ἔρως2mo ago
not. seriously just put everything you need to build the file which is what git is for
glutonium
glutonium2mo ago
ya there we go release
ἔρως
ἔρως2mo ago
you shouldn't be putting that file in github, at all just put the project file and all other files, but don't put any builds then, you write how to compile it in the readme file
ghoul
ghoulOP2mo ago
ok but now even after removing the large file i am getting the same errror while push how to resolve this
ἔρως
ἔρως2mo ago
commit the changes then push
ghoul
ghoulOP2mo ago
still getting the same issue and LFS is still uploading it how i stop that "Uploading LFS objects: 100% (1/1), 113 MB | 0 B/s, done."
ἔρως
ἔρως2mo ago
it already stopped according to that
ghoul
ghoulOP2mo ago
" Uploading LFS objects: 100% (1/1), 113 MB | 0 B/s, done. Enumerating objects: 27, done. Counting objects: 100% (27/27), done. Delta compression using up to 16 threads Compressing objects: 100% (24/24), done. Writing objects: 100% (25/25), 104.48 MiB | 812.00 KiB/s, done. Total 25 (delta 10), reused 0 (delta 0), pack-reused 0 (from 0) remote: Resolving deltas: 100% (10/10), completed with 1 local object. remote: error: Trace: c873ab77a950d58b1042f6aeedc441459a36d9e651f4e5795c3d9d3a8b9bf6e5 remote: error: See https://gh.io/lfs for more information. remote: error: File 23.Quick Exercise 7/ue_english_64.exe is 107.67 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. To https://github.com/undeadskeleton/sigma_web_dev.git ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to 'https://github.com/undeadskeleton/sigma_web_dev.git' "
Git Large File Storage
Git Large File Storage
Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
GitHub
GitHub - undeadskeleton/sigma_web_dev
Contribute to undeadskeleton/sigma_web_dev development by creating an account on GitHub.
ἔρως
ἔρως2mo ago
revert the local commits
ghoul
ghoulOP2mo ago
how do i revert local commits ?? i did like 11 fail commit github shows 31 commit how can i see how many local commit i had done after that
ἔρως
ἔρως2mo ago
the easiest is to use whatever ide you are using or the github desktop program or another decent gui program for git
ghoul
ghoulOP2mo ago
even after reverting to a specific hash i still cant push
ἔρως
ἔρως2mo ago
revert to the hash before that one one that didnt had the file
ghoul
ghoulOP2mo ago
yup did that and then commit and push and still same problem
ἔρως
ἔρως2mo ago
did you do any other code changes since you tried to upload the file?
ghoul
ghoulOP2mo ago
yeah a bit but not the file before the hash
ἔρως
ἔρως2mo ago
if i were you, i would just create a new branch from github's website, from master then, you use the web editor (press the . key) and backport the changes from your local copy to the web editor commit everything in your new branch then, you either delete your local folder and re-download it all from that new branch, or you just force-change to the new branch if you force the change, then you can just force-delete the local branch after you merge to master, on github, you can just change to master
ghoul
ghoulOP2mo ago
hint: Waiting for your editor to close the file... "C:\Program Files\Microsoft VS Code\bin\code" --wait: line 1: C:\Program Files\Microsoft VS Code\bin\code: No such file or directory error: there was a problem with the editor '"C:\Program Files\Microsoft VS Code\bin\code" --wait' Please supply the message using either -m or -F option. what this error
glutonium
glutonium2mo ago
instead of copy pasting errors would be nice if u can show w screenshot
ἔρως
ἔρως2mo ago
how did you even get that???
ghoul
ghoulOP2mo ago
trying to revert to a hash noted
glutonium
glutonium2mo ago
run git status and show a screenshot of it
ghoul
ghoulOP2mo ago
No description
ἔρως
ἔρως2mo ago
why are you using mingw64?
Jochem
Jochem2mo ago
it's the default for git bash
ghoul
ghoulOP2mo ago
i guess it an external storage device
ἔρως
ἔρως2mo ago
oh, alright. so weird to see someone use it "in the wild"
Jochem
Jochem2mo ago
🤷 I use it occasionally
Jochem
Jochem2mo ago
but yeah, that's just what git bash looks like
No description
ἔρως
ἔρως2mo ago
alright, and git bash is just a shell, like if you tried to run bash in linux?
Jochem
Jochem2mo ago
it's basically bash for windows, yeah
ἔρως
ἔρως2mo ago
not the source of the problem then
Jochem
Jochem2mo ago
the only reason I'm saying this is that it's not the issue, git bash is a perfectly cromulent way of interacting with git on the command line in Windows yup
ἔρως
ἔρως2mo ago
the thingy is those untracked files
Jochem
Jochem2mo ago
I've not read backscroll at all, but does git add 21.(and so on) not work?
ἔρως
ἔρως2mo ago
it should
ghoul
ghoulOP2mo ago
git add . does work
ἔρως
ἔρως2mo ago
commit it if you need to revert, you can do it later
ghoul
ghoulOP2mo ago
did that now i cant push cause file is over 100mb
ghoul
ghoulOP2mo ago
the file is not even there but still
No description
ἔρως
ἔρως2mo ago
can you show the actual message?
ghoul
ghoulOP2mo ago
No description
ghoul
ghoulOP2mo ago
which one??
ἔρως
ἔρως2mo ago
delete the exe file
ghoul
ghoulOP2mo ago
deleted
ἔρως
ἔρως2mo ago
now commit and push
ghoul
ghoulOP2mo ago
No description
ghoul
ghoulOP2mo ago
still not there but still pushing over 100mb
ἔρως
ἔρως2mo ago
can you show the message?
ghoul
ghoulOP2mo ago
No description
ἔρως
ἔρως2mo ago
delete that file too
ghoul
ghoulOP2mo ago
which file?? exercise 23??
ἔρως
ἔρως2mo ago
the exe inside that folder
ghoul
ghoulOP2mo ago
i deleted the exercise 23 and still cant push exercise 23 is not even on ``ls-file -s"
ἔρως
ἔρως2mo ago
have you tried again?
ghoul
ghoulOP2mo ago
still same error even after removing 23
ἔρως
ἔρως2mo ago
whats the error?
ghoul
ghoulOP2mo ago
ἔρως
ἔρως2mo ago
i see the problem you are uploading someone's lessons to github, as if it was part of the exercise it isnt you are supposed to replicate the code and follow along on a different folder
ghoul
ghoulOP2mo ago
yes that right i was suppose to solve a problem where if download link is clicked it should let them download the file so added the .exe but thats not the issue here why cant i stop LFS from uploading the file which is not there
ἔρως
ἔρως2mo ago
it is there, but isnt in the list because the list lists whats in github and the file isnt in github
ghoul
ghoulOP2mo ago
yeah the files is not uploaded to github why dont i delete local files and just pull the repo
ἔρως
ἔρως2mo ago
because you said you did changes also, you will face the same problem later on, since you're not supposed to upload the whole thing, just the code you wrote
ghoul
ghoulOP2mo ago
so how do i stop LFS uploading that file is untracked and not available locally but is uploading when pushing
ἔρως
ἔρως2mo ago
the file is there the file exists you're checking the wrong place, as i've explained
ghoul
ghoulOP2mo ago
well cannot find it and why cant i just stop LFS uploading is it not possible
ἔρως
ἔρως2mo ago
because it isn't here's what you did in the video: - show the list of files in github - try to push a file that's over 100mb using git push

Did you find this page helpful?