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

75 Replies
why are you even trying to send a 100mb binary file to github?
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
wait how do i upload from github when i cannot push to git repo due to large file size???
I've never released myself but search "how to release binaries on github"
just building smaple site is there any better way to do this

try clicking here and see if u can upload from here
sample sites?
website?
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...
not. seriously
just put everything you need to build the file
which is what git is for
ya there we go
release
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
ok but now even after removing the large file i am getting the same errror while push how to resolve this
commit the changes then push
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."
it already stopped
according to that
"
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'
"
GitHub Docs
Managing large files - GitHub Docs
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.
revert the local commits
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
the easiest is to use whatever ide you are using
or the github desktop program
or another decent gui program for git
even after reverting to a specific hash i still cant push
revert to the hash before that one
one that didnt had the file
yup did that and then commit and push and still same problem
did you do any other code changes since you tried to upload the file?
yeah a bit
but not the file before the hash
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 masterhint: 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
instead of copy pasting errors
would be nice if u can show w screenshot
how did you even get that???
trying to revert to a hash
noted
run git status and show a screenshot of it

why are you using mingw64?
it's the default for git bash
i guess it an external storage device
oh, alright. so weird to see someone use it "in the wild"
🤷 I use it occasionally
but yeah, that's just what git bash looks like

alright, and git bash is just a shell, like if you tried to run bash in linux?
it's basically bash for windows, yeah
not the source of the problem then
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
the thingy is those untracked files
I've not read backscroll at all, but does
git add 21.(and so on)
not work?it should
git add . does work
commit it
if you need to revert, you can do it later
did that now i cant push cause file is over 100mb
the file is not even there but still

can you show the actual message?

which one??
delete the exe file
deleted
now commit and push

still not there but still pushing over 100mb
can you show the message?

delete that file too
which file?? exercise 23??
the exe inside that folder
i deleted the exercise 23 and still cant push exercise 23 is not even on ``ls-file -s"
have you tried again?
still same error even after removing 23
whats the error?
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
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
it is there, but isnt in the list because the list lists whats in github
and the file isnt in github
yeah the files is not uploaded to github why dont i delete local files and just pull the repo
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
so how do i stop LFS uploading that file is untracked and not available locally but is uploading when pushing
the file is there
the file exists
you're checking the wrong place, as i've explained
well cannot find it and why cant i just stop LFS uploading is it not possible
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