After reading this issue: https://github.com/git-lfs/git-lfs/issues/2481

I contact [email protected], they solved my issue. Here is the email content:

Hello there,

Thanks for writing in and I'm sorry for the trouble. I've just rebuilt your Git LFS usage and it's now re-enabled on your account.

Thanks, Steve

Now, I can use git-lfs.

Connection to github.com closed by remote host. 6.0 MB/s
Uploading LFS objects:  51% (275/540), 5.5 GB | 5.2 MB/s
Answer from Lin Du on Stack Overflow
🌐
GitHub
github.com › orgs › community › discussions › 159742
Git LFS is disabled for this repository · community · Discussion #159742
The message you're seeing — "Git LFS is disabled for this repository" — typically means that Git LFS has not been explicitly enabled for the repository in question, even if you’ve configured it locally.
🌐
GitHub
github.com › orgs › community › discussions › 176833
Git LFS is disabled for my repository - "CuraFind-Powered-By-AI" · community · Discussion #176833
October 13, 2025 - ... The error message "batch response: Git LFS is disabled for this repository" indicates that Git Large File Storage (LFS) is not enabled on the repository itself, rather than a local Git problem.
Discussions

Git LFS disabled for account
Currently Git LFS is disabled for my account and it says that my storage has exceeded the limits. However, there are no files uploaded to my repository. Is there any way to release the storage? Beta Was this translation helpful? Give feedback. ... This sounds like a problem with GitHub ... More on github.com
🌐 github.com
1
2
batch response: Git LFS is disabled
Hello, I am attempting to push a .h5 file up to the GitHub Repo using Git LFS but, I keep getting the following error: Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done. batch response: Git LFS is disabled error: failed to push some ref... More on github.com
🌐 github.com
4
April 7, 2021
git lfs - How do I disable git-lfs? - Stack Overflow
I need a way to trawl through the ... work git LFS does (so all files are committed 'normally'). Once this is done, I intend to force push to the new repository. I've done quite a bit of searching, and come across suggested solutions but I don't understand how to implement/run them because they are high-level. ... That would be something like github.com/git-l... More on stackoverflow.com
🌐 stackoverflow.com
Simple steps to uninstall Git LFS from your repository
it's time to settle this topic once and for all, because answers raised in previous issues about this have proven insufficiently formulated, or are simply outdated with deprecated commands (#31... More on github.com
🌐 github.com
30
May 25, 2018
🌐
GitHub
gist.github.com › everttrollip › 198ed9a09bba45d2663ccac99e662201
Removing git lfs from (any) repository · GitHub
Once your branch (fix/remove-lfs) is merged into develop, your team doesn't need to do anything other than simply pulling and checking out the new state of the world, their repository will work as-expected without git lfs installed.
🌐
GitLab
docs.gitlab.com › topics › git › lfs
Git Large File Storage (LFS) | GitLab Docs
Git Large File Storage (LFS) is an open source Git extension that helps Git repositories manage large binary files efficiently. Git can’t track changes to binary files (like audio, video, or image files) the same way it tracks changes to text files. While text-based files can generate plaintext diffs, any change to a binary file requires Git to completely replace the file in the repository.
Find elsewhere
🌐
GitHub
github.com › desktop › desktop › issues › 11956
batch response: Git LFS is disabled · Issue #11956 · desktop/desktop
April 7, 2021 - I am attempting to push a .h5 file up to the GitHub Repo using Git LFS but, I keep getting the following error: Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done. batch response: Git LFS is disabled error: failed to push some refs to 'https://code.devtools.lumeris.com/scm/tlk/prime-analytics.git'
Author   desktop
🌐
GitHub
docs.github.com › en › repositories › working-with-files › managing-large-files
Managing large files - GitHub Docs
In order to use Git LFS, you'll need to download and install a new program that's separate from Git.
🌐
DEV Community
dev.to › mishmanners › how-to-use-git-lfs-to-store-big-files-on-github-2b2e
How to use Git LFS to store big files on GitHub - DEV Community
If you want to store a large file on GitHub you can. You'll need to use something called Git Large File Storage (LFS).
Published   February 22, 2024
🌐
CloudCannon
cloudcannon.com › documentation › developer-articles › enable-git-lfs
Enable Git LFS | CloudCannon Documentation
April 11, 2026 - Learn how to enable Git LFS to store large files outside your repository for faster syncs and builds in CloudCannon.
🌐
GitHub
docs.github.com › en › repositories › managing-your-repositorys-settings-and-features › managing-repository-settings › managing-git-lfs-objects-in-archives-of-your-repository
Managing Git LFS objects in archives of your repository - GitHub Docs
GitHub creates source code archives of your repository in the form of ZIP files and tarballs. People can download these archives on the main page of your repository or as release assets. By default, Git LFS objects are not included in these archives, only the pointer files to these objects.
Top answer
1 of 7
75

Update current commit only

If you want to move off LFS, but are not so worried about fixing the entire git history, you can do the following;

git lfs uninstall
touch **/*
git commit -a

This will uninstall LFS support, touch every single file (so that git recognises that is has changed) then commit them all. If you like you could be more specific (ie, **/*.png for example). Note that using ** requires extended glob support enabled (shopt -s globstar on bash)

Update entire history

This worked for me - but it throws lots of errors (I think I'm getting an error for every commit that a file hasn't been added to LFS in) and takes a long time (roughly 2-3 seconds per commit).

git lfs uninstall
git filter-branch -f --prune-empty --tree-filter '
  git lfs checkout
  git lfs ls-files | cut -d " " -f 3 | xargs touch
  git rm -f .gitattributes
  git lfs ls-files | cut -d " " -f 3 | git add
' --tag-name-filter cat -- --all

It uninstalls git LFS support (theoretically preventing LFS from messing with the index) then for each commit it makes sure the LFS files are checked out properly, then touches them all (so git realises they have changed), removes the settings for LFS found in .gitattributes so that when cloning it doesn't keep trying to use LFS, then adds the real file to the index.

After you do the above, you will need to do a force push. Naturally, that'll throw anyone else working on your repo into a detached head state - so doing this during a code freeze is wise. Afterwards, it's probably easiest to get everyone to do a fresh clone.

2 of 7
50

git lfs migrate export

From git lfs migrate help:

Export

The export mode migrates Git LFS pointer files present in the Git history out of Git LFS, converting them into their corresponding object files.

Example Workflow

  1. Verify you actually have LFS files with git lfs ls-files.
  2. Remove all filter=lfs lines from ALL the .gitattributes files in your repo. .gitattributes can live anywhere so make sure you find them all otherwise this can cause migration issues later.
  3. Commit any changes you made to .gitattributes.
  4. Make sure you have no changes with git status.
  5. Run the migration: git lfs migrate export --everything --include .
  6. Run git status to make sure you have no changes. If you left .gitattributes with filter=lfs you might incorrectly have changes now.
  7. Verify all the previously listed LFS files are no longer present with git lfs ls-files.
  8. Inspect files (e.g., open formerly LFS files to make sure they aren't corrupt) and run your build to make sure everything works.

Tips

  • Run on case sensitive file system, in case you have file system collisions (e.g. ./LICENSE and ./License) at some point.
  • Git rid of all your filter=lfs lines from ALL your .gitattributes.
  • You may also want to delete LFS remains in .git/hooks directory: pre-commit, post-commit, post-checkout, post-merge.
  • With $GIT_TRACE=1 there should be no sign of ...trace git-lfs: filepathfilter: accepting...
🌐
Graphite
graphite.com › guides › how-to-use-git-large-file-storage-lfs
How to use Git Large File Storage (LFS)
Use Git LFS for files that exceed 100 MB: This is particularly important for repositories on platforms like GitHub, which have strict limits on file sizes.
🌐
GitHub
github.com › git-lfs › git-lfs › issues › 910
How to remove LFS completely in my repository? · Issue #910 · git-lfs/git-lfs
December 22, 2015 - Download LFS tracked files always fail. The log shows "dial tcp: i/o timeout". Maybe the cloud service used by LFS is unsuitable for me (A Chinese guy). I guess I wouldn't use LFS any...
Author   git-lfs