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.gzfile 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.gz2.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. - Do not forget to create
.local/binin your home folder if that doesn't exist. - Add
.local/binto.bashrcor whatever shell you use. - Run
bash ./install.sh