My repository uses git LFS and includes lines such as this one in its .gitattributes:
*.jar filter=lfs diff=lfs merge=lfs -text
There's one .jar file that I want to store in the repo directly, not involving LFS. Ideally, I would make LFS not apply to anything under the directory that contains that jar. Is there a way to do that?
If you wish to delete the LFS file in your repository, navigate to the Repository settings > Git LFS and click the "..." drop-down on the right side of the files, then click Delete files. I hope this helps.
File Locking lets developers lock files they are updating to prevent other users from updating them at the same time. Concurrent edits in Git repositories will lead to merge conflicts, which are very difficult to resolve in large binary files.
This answer is largely sourced from this github comment
The syntax for .gitattributes
allows you to "minus" an attribute -- removing it from already being included (see: https://git-scm.com/docs/gitattributes#gitattributes-Unset)
This allows you un-lfs a file that was previously included (the example from the github thread):
*.asset filter=lfs diff=lfs merge=lfs -text
Assets/Resources/*.asset -filter=lfs -diff=lfs -merge=lfs -text
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With