Git ขั้นสูง
Amanda Crawford-Adamo
Software and Data Engineer
คำสั่ง Git LFS:
git lfs
ประโยชน์:
เริ่มต้นใช้งาน Git LFS
git lfs install
กำหนดไฟล์ที่ต้องการติดตามและสร้างไฟล์ .gitattributes
git lfs track "*.csv"
เพิ่มไฟล์ .gitattributes พร้อมการตั้งค่าการติดตามลงใน git index
git add .gitattributes
git commit -m "Track CSV files"

git addgit 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
ควรใช้เมื่อ:
ไม่ควรใช้เมื่อ:
เคล็ดลับ:
Git ขั้นสูง