Skip to content

Instantly share code, notes, and snippets.

@martinkennelly
Created November 11, 2019 18:19
Show Gist options
  • Save martinkennelly/1e4e61c300f70b977dce1eceff269320 to your computer and use it in GitHub Desktop.
Save martinkennelly/1e4e61c300f70b977dce1eceff269320 to your computer and use it in GitHub Desktop.
Install git lfs on ubuntu 18.04
#!/bin/bash -x
# tested on ubuntu 18.04
# 11/11/19
set -e
curdir="$(pwd)"
cd /tmp
tempdir=$(mktemp -d)
cd $tempdir
wget -q https://github.com/git-lfs/git-lfs/releases/download/v2.9.0/git-lfs-linux-amd64-v2.9.0.tar.gz
tar -xf git-lfs-linux-amd64-v2.9.0.tar.gz
sudo ./install.sh
rm -rf $tempdir
git lfs install
echo "done. lfs installed on your git."
cd $curdir
set +e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment