Git 進階
Amanda Crawford-Adamo
Software and Data Engineer
Git LFS 指令:
git lfs
優點:
初始化 Git LFS
git lfs install
設定要追蹤的檔案並產生 .gitattributes 檔
git lfs track "*.csv"
將含追蹤設定的 .gitattributes 加入 index
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 # 若需明確下載 LFS 內容
適用情境:
不適用情境:
小撇步:
Git 進階