Skip to content

Instantly share code, notes, and snippets.

@Ch-sriram
Created January 31, 2025 12:20
Show Gist options
  • Save Ch-sriram/931b8610421a4f0af5f8c33603eef173 to your computer and use it in GitHub Desktop.
Save Ch-sriram/931b8610421a4f0af5f8c33603eef173 to your computer and use it in GitHub Desktop.
GitHub LFS [Large File System] Commands
git lfs install # if git config is not currently configured for LFS
git lfs track "*.jpg" "*.png" # track all jpg and png files (recursively)
git add .gitattributes **/*.jpg **/*.png # add .gitattributes and LFS artifacts (recursively)
git lfs ls-files # optional: ensure your LFS files are tracked before committing
git commit -m "Tracking and adding LFS artifacts"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment