Azure DevOps Server 2019 Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

How to do it...

For Git LFS to work, it needs to know what file types you want to be tracked using Git LFS. Git LFS stores this setting in the .gitattributes file. This file is committed to the repository; this way everyone on your team that uses Git will be using the same LFS configuration. Let's get started: 

  1. Configure Git LFS to track all MP4 files:
git lfs track "*.mp4"
  1. Track the changes in your .gitattribute file: 
git add .gitattributes
  1. Commit and push the changes in your .gitattribute file to the remote repository:
git commit -m "Track all mp4 files in git LFS"
git push origin master