Skip to content

Instantly share code, notes, and snippets.

@vsocrates
Forked from pourmand1376/git-lfs-install.md
Last active March 6, 2024 05:26
Show Gist options
  • Save vsocrates/9eb8e68fd02a11c3c28362531855481c to your computer and use it in GitHub Desktop.
Save vsocrates/9eb8e68fd02a11c3c28362531855481c to your computer and use it in GitHub Desktop.
Single User Installation of Git-LFS without sudo

I wanted to install GIT-Lfs on my user account without access to server root account. I write this to my future self.

  1. Download tar.gz file from git-lfs website.
wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-linux-amd64-v3.2.0.tar.gz

2.Untar it

tar xvf git-lfs-linux-amd64-v3.2.0.tar.gz
  1. Go to directory
cd git-lfs-3.2.0/
  1. give permission to file install.sh
chmod +x install.sh
  1. Edit file install.sh and change prefix from /usr/local/ to $YOUR_HOME/.local.
  2. Do not forget to create .local/bin in your home folder if that doesn't exist.
  3. Add .local/bin to .bashrc or whatever shell you use.
  4. Run bash ./install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment