5

How do you do a full remove/unistall of git-lfs please? I did git lfs uninstall which returned the following two lines:

Hooks for this repository have been removed
Global Git LFS configuration has been removed

but the lfs folder is still under .git and when I do git status files come and go in that folder (.git/lfs/tmp). It looks to me that git-lfs has not probably been removed. The executable has also been uninstalled from the uninstall or change a program window under control panel in my windows10 machine.

Aenaon
  • 3,169
  • 4
  • 32
  • 60
  • 1
    when you run git lfs uninstall, it means your new files would not be tracked and pushed to remote lfs server. .git/lfs/tmp is a locall temporary folder to cache lfs files and you should do git lfs prune to clean it up, or just don't need to care about it at all if you don't care about your space. – Zhong Hu Oct 14 '18 at 06:58

2 Answers2

3

As mentioned in git-lfs/git-lfs issue 959, you can delete that folder now.

Before un-installing lfs, a git lfs prune would have help keep that content to a reasonnable size. But now, the folder is no longer needed.


As RYO ENG Lian Hu points out in the comments, ans explained in "not able to push file more than 100mb to GitHub"

You will not be allowed to push files larger than 100MB.
For more details check this link: GIT - working with large files

You can split up your zip file into 2 files of sizes less than 100MB and push the same.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

The problem I encountered was that I installed git-lfs on my computer running Ubuntu 22.10 (Kinetic Kudu). When I upgraded the computer to 23.04 (Lunar Lobster), apt update at the command prompt started complaining bitterly that the git-lfs repository didn't have a release for Lunar Lobster: and the Software Updater application broke completely, complaining that I had no network connection (??)

I couldn't find the git-lfs repository in the Software and Updates application. In then end I had to list the files in /etc/apt/sources.list.d/ directory and delete the git_git-lfs.list file. After than everything on my computer worked correctly again.

starball
  • 20,030
  • 7
  • 43
  • 238
KiwiMartin
  • 804
  • 9
  • 15