Skip to content

Instantly share code, notes, and snippets.

@cotsog
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cotsog/7b8fa9ba93334df0e7c9 to your computer and use it in GitHub Desktop.
Save cotsog/7b8fa9ba93334df0e7c9 to your computer and use it in GitHub Desktop.
# Inspired from https://github.com/piwik/travis-scripts/blob/git-lfs/install_git_lfs.sh
# Change the remote because git lfs doesn't support git:// URLs
git remote set-url origin "https://$GITHUB_USER_TOKEN:@github.com/$TRAVIS_REPO_SLUG.git"
# Install it!
curl -sLo - https://github.com/github/git-lfs/releases/download/v0.5.2/git-lfs-linux-amd64-0.5.2.tar.gz | tar xzvf -
cd git-lfs-*
sudo ./install.sh
cd ..
rm -rf git-lfs-*
# Use it!
git lfs fetch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment