Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This is the answer that should be accepted. I omitted the second line .gitignore filter= diff= merge= text in my repository where I use git to backup my photos. Commented Mar 3, 2021 at 2:33
  • I had issues with this syntax using pre-commit-hooks. Using ! as suggested below solved the issue Commented Jan 16, 2022 at 20:44
  • After updating the .gitattributes file, how do I replace the local files with their dereferenced content (instead of the git-lfs reference)? Commented Jun 15, 2022 at 18:08