Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall Git Lfs #316

Closed
ghost opened this issue May 20, 2015 · 9 comments
Closed

Uninstall Git Lfs #316

ghost opened this issue May 20, 2015 · 9 comments

Comments

@ghost
Copy link

ghost commented May 20, 2015

how can i remove git-lfs

@ghost ghost closed this as completed May 20, 2015
@ghost ghost reopened this May 20, 2015
@technoweenie
Copy link
Contributor

We haven't built an uninstaller into Git LFS yet. Assuming you installed it by downloading a zip from the Releases section, you should be able to simply delete the git-lfs binary. The linux installer either throws it in:

  • /usr/local/bin/git-lfs
  • $PREFIX/bin/git-lfs
  • $BOXEN_HOME/bin/git-lfs
  • %LOCALAPPDATA%\GitLFS\bin (Windows only)

You can run which git-lfs to see where the installer put it.

Once that's done, you can also remove the global git configs that Git LFS sets up. However, leaving them on the system won't affect anything, unless you happen to install another "git lfs" tool.

$ git config --global --unset filter.lfs.required
$ git config --global --unset filter.lfs.smudge  
$ git config --global --unset filter.lfs.clean 

# confirm all git lfs settings are gone
$ git config -l | grep lfs

@technoweenie
Copy link
Contributor

Let me know if you need more help.

@technoweenie technoweenie reopened this May 20, 2015
@ghost ghost closed this as completed May 20, 2015
@shadowwalkersb
Copy link

In addition to the suggestion above, I have removed every folder named lfs under .git of a few other local repositories that I can find on my system. I still get the following message

git: 'lfs' is not a git command. See 'git --help'.

Did you mean this?
    log
error: failed to push some refs to 'git@github.com:.............'

@shadowwalkersb
Copy link

Is this related to #333 and #334 ?
I reinstalled git-lfs and I can push now.

@ynroot
Copy link

ynroot commented Jun 24, 2015

i just put git-lfs the 777 permission, opensuse(usr/local/bin) and it work for me!

@hayesmaker
Copy link

please make an uninstaller.. there's no way currently to update (or at least make updates easier)

@nuest
Copy link

nuest commented Feb 23, 2016

Just in case somebody is looking for help here to remove git lfs from a repository: After deleting git-lfs binary, the following error message told me to remove a hook. I assume I could have kept the binary and the global config if I just removed the hook from the repo in question:

This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.

error: failed to push some refs to 'https://github.com/...'

@kaspar-allenbach
Copy link

How about that uninstaller?

@bk2204
Copy link
Member

bk2204 commented Jul 23, 2019

Except on Windows, we don't provide an installer. If you want to uninstall Git LFS on a Linux or macOS system, you can either uninstall the package using the package manager or just delete the binary, depending on how you installed it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@technoweenie @bk2204 @hayesmaker @kaspar-allenbach @nuest @ynroot @shadowwalkersb and others