I wanted to install GIT-Lfs
on my user account without access to server root account. I write this to my future self.
- 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
- Go to directory
cd git-lfs-3.2.0/
- give permission to file
install.sh
chmod +x install.sh
- Edit file install.sh and change prefix from
/usr/local/
to$YOUR_HOME/.local/bin
. - Do not forget to create
.local/bin
in your home folder if that doesn't exist. - Now you can run
./install.sh
to install git-lfs. - Add
.local/bin
to.bashrc
or whatever shell you use. This step is to make sure that your shell can findgit-lfs
binaries.