Skip to content

Instantly share code, notes, and snippets.

@gifflet
Last active January 16, 2024 17:59
Show Gist options
  • Save gifflet/dc5384215f0227a907d2b3bd11ce2f1a to your computer and use it in GitHub Desktop.
Save gifflet/dc5384215f0227a907d2b3bd11ce2f1a to your computer and use it in GitHub Desktop.
Pushing or Pulling with Git LFS (Large File Storage)

Adding files to be tracked by lfs and pushing it to remote repository

git lfs track "*.psd"

git add .gitattributes

git add file.psd

git commit -m "Add design file"

git config http.version HTTP/1.1
git push origin main

Pulling an tracked file

git pull origin master
git lfs pull --include "file.psd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment