Git 高级
Amanda Crawford-Adamo
Software and Data Engineer
Git LFS 命令:
git lfs
优势:
初始化 Git LFS
git lfs install
设置要跟踪的文件并生成 .gitattributes 文件
git lfs track "*.csv"
将带有跟踪配置的 .gitattributes 加入索引
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 高级