Advanced Git
Amanda Crawford-Adamo
Software and Data Engineer
Git LFS Command:
git lfs
Benefits:
Initialize Git LFS
git lfs install
Setup files to track and generate .gitattributes
file
git lfs track "*.csv"
Add to git index .gitattributes
with tracking config
git add .gitattributes
git commit -m "Track CSV files"
git add
git add large_file.csv
git commit -m "Update large CSV file"
git push origin main
git pull
git lfs pull # If needed to explicitly download LFS content
When to use:
When not to use:
Tips:
Advanced Git