Created
January 31, 2025 12:20
-
-
Save Ch-sriram/931b8610421a4f0af5f8c33603eef173 to your computer and use it in GitHub Desktop.
GitHub LFS [Large File System] Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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